Class: Hutzbot::Taxonomy
- Inherits:
-
Object
- Object
- Hutzbot::Taxonomy
- Defined in:
- lib/hutzbot/hutzbot.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Taxonomy
constructor
A new instance of Taxonomy.
Constructor Details
#initialize(attrs) ⇒ Taxonomy
Returns a new instance of Taxonomy.
60 61 62 |
# File 'lib/hutzbot/hutzbot.rb', line 60 def initialize attrs @id, @name = *attrs.values_at('id', 'name') end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
57 58 59 |
# File 'lib/hutzbot/hutzbot.rb', line 57 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
58 59 60 |
# File 'lib/hutzbot/hutzbot.rb', line 58 def name @name end |