Class: RCracy::Nut
- Inherits:
-
Object
- Object
- RCracy::Nut
- Defined in:
- lib/rcracy/nut.rb
Instance Attribute Summary collapse
-
#big_image ⇒ Object
readonly
Returns the value of attribute big_image.
-
#date_received_or_last ⇒ Object
readonly
Returns the value of attribute date_received_or_last.
-
#date_since ⇒ Object
readonly
Returns the value of attribute date_since.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#flag_type ⇒ Object
readonly
Returns the value of attribute flag_type.
-
#history ⇒ Object
readonly
Returns the value of attribute history.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#small_image ⇒ Object
readonly
Returns the value of attribute small_image.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Nut
constructor
A new instance of Nut.
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_image ⇒ Object (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_last ⇒ Object (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_since ⇒ Object (readonly)
Returns the value of attribute date_since.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def date_since @date_since end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def description @description end |
#flag_type ⇒ Object (readonly)
Returns the value of attribute flag_type.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def flag_type @flag_type end |
#history ⇒ Object (readonly)
Returns the value of attribute history.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def history @history end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def id @id end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def name @name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def number @number end |
#small_image ⇒ Object (readonly)
Returns the value of attribute small_image.
5 6 7 |
# File 'lib/rcracy/nut.rb', line 5 def small_image @small_image end |