Class: GodvilleKit::Gear

Inherits:
Object
  • Object
show all
Defined in:
lib/godville_kit/gear.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#levelObject (readonly)

Returns the value of attribute level.



3
4
5
# File 'lib/godville_kit/gear.rb', line 3

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/godville_kit/gear.rb', line 3

def name
  @name
end