Class: Hutzbot::TaggedDocument
- Inherits:
-
Object
- Object
- Hutzbot::TaggedDocument
- Defined in:
- lib/hutzbot/hutzbot.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ TaggedDocument
constructor
A new instance of TaggedDocument.
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
#id ⇒ Object
Returns the value of attribute id.
66 67 68 |
# File 'lib/hutzbot/hutzbot.rb', line 66 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
67 68 69 |
# File 'lib/hutzbot/hutzbot.rb', line 67 def title @title end |