Class: RCracy::Nut

Inherits:
Object
  • Object
show all
Defined in:
lib/rcracy/nut.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Nut

Returns a new instance of Nut.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rcracy/nut.rb', line 8

def initialize(attrs)
	@id          = attrs['id']
	@name        = attrs['name']
	@date_since  = attrs['dateSince']
	@history     = attrs['history']
	@small_image = attrs['imageSmall']
	@big_image   = attrs['imageBig']
	@description = attrs['description']
	@flag_type   = attrs['flg_type']
	@level       = attrs['level']
	@date_received_or_last = attrs['dateReceivedOrLast']
	@number      = attrs['number']
end

Instance Attribute Details

#big_imageObject (readonly)

Returns the value of attribute big_image.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def big_image
  @big_image
end

#date_received_or_lastObject (readonly)

Returns the value of attribute date_received_or_last.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def date_received_or_last
  @date_received_or_last
end

#date_sinceObject (readonly)

Returns the value of attribute date_since.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def date_since
  @date_since
end

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def description
  @description
end

#flag_typeObject (readonly)

Returns the value of attribute flag_type.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def flag_type
  @flag_type
end

#historyObject (readonly)

Returns the value of attribute history.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def history
  @history
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def id
  @id
end

#levelObject (readonly)

Returns the value of attribute level.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def number
  @number
end

#small_imageObject (readonly)

Returns the value of attribute small_image.



5
6
7
# File 'lib/rcracy/nut.rb', line 5

def small_image
  @small_image
end