Class: Hutzbot::TaggedDocument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ TaggedDocument

Returns a new instance of TaggedDocument.



69
70
71
# File 'lib/hutzbot/hutzbot.rb', line 69

def initialize attrs
  @id, @title = *attrs.values_at('id', 'title')
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



66
67
68
# File 'lib/hutzbot/hutzbot.rb', line 66

def id
  @id
end

#titleObject

Returns the value of attribute title.



67
68
69
# File 'lib/hutzbot/hutzbot.rb', line 67

def title
  @title
end