Class: RPG::Troop
- Inherits:
-
Object
- Object
- RPG::Troop
- Defined in:
- lib/rpg/troop.rb,
lib/rpg/troop/page.rb,
lib/rpg/troop/member.rb,
lib/rpg/troop/page/condition.rb
Defined Under Namespace
Instance Attribute Summary (collapse)
-
- (Object) id
Returns the value of attribute id.
-
- (Object) members
Returns the value of attribute members.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) pages
Returns the value of attribute pages.
Instance Method Summary (collapse)
-
- (Troop) initialize
constructor
A new instance of Troop.
Constructor Details
- (Troop) initialize
Returns a new instance of Troop
3 4 5 6 7 8 |
# File 'lib/rpg/troop.rb', line 3 def initialize @id = 0 @name = '' @members = [] @pages = [RPG::Troop::Page.new] end |
Instance Attribute Details
- (Object) id
Returns the value of attribute id
9 10 11 |
# File 'lib/rpg/troop.rb', line 9 def id @id end |
- (Object) members
Returns the value of attribute members
11 12 13 |
# File 'lib/rpg/troop.rb', line 11 def members @members end |
- (Object) name
Returns the value of attribute name
10 11 12 |
# File 'lib/rpg/troop.rb', line 10 def name @name end |
- (Object) pages
Returns the value of attribute pages
12 13 14 |
# File 'lib/rpg/troop.rb', line 12 def pages @pages end |