Class: Hutzbot::Taxonomy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



57
58
59
# File 'lib/hutzbot/hutzbot.rb', line 57

def id
  @id
end

#nameObject

Returns the value of attribute name.



58
59
60
# File 'lib/hutzbot/hutzbot.rb', line 58

def name
  @name
end