Class Equipment
In: app/models/equipment.rb
Parent: ActiveRecord::Base

Equipment

Original by:Sysphonic
Authors:MORITA Shintaro
Copyright:Copyright (c) 2007 MORITA Shintaro, Sysphonic. All rights reserved.
License:New BSD License (See LICENSE file)
URL:http://sysphonic.com/

Equipment is related to Schedules, in short, ‘reserved’.

Note:

  • Some attributes (‘users’, ‘groups’, ‘teams’) are prepared for future use, currently not in use,

Methods

Public Class methods

self.get_name

Gets Equipment name.

return:Equipment name.

Public Instance methods

get_groups_a

Gets Groups array which this Equipment belongs to.

return:Groups array without empty element. If no Groups, returns empty array.

get_teams_a

Gets Teams array which this Equipment belongs to.

return:Teams array without empty element. If no Teams, returns empty array.

get_users_a

Gets Users array which this Equipment belongs to.

return:Users array without empty element. If no Users, returns empty array.

[Validate]