Class: GodvilleKit::Gear
- Inherits:
-
Object
- Object
- GodvilleKit::Gear
- Defined in:
- lib/godville_kit/gear.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(raw_gear_data) ⇒ Gear
constructor
A new instance of Gear.
Constructor Details
#initialize(raw_gear_data) ⇒ Gear
Returns a new instance of Gear.
6 7 8 9 |
# File 'lib/godville_kit/gear.rb', line 6 def initialize(raw_gear_data) @name = raw_gear_data['name'].to_s @level = raw_gear_data['level'].to_s end |
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
3 4 5 |
# File 'lib/godville_kit/gear.rb', line 3 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/godville_kit/gear.rb', line 3 def name @name end |