Class: Srchio::Result
- Inherits:
-
Object
- Object
- Srchio::Result
- Defined in:
- lib/srchio/result.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#highlight ⇒ Object
Returns the value of attribute highlight.
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#remote_id ⇒ Object
Returns the value of attribute remote_id.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(result = {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(result = {}) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 10 11 12 13 |
# File 'lib/srchio/result.rb', line 5 def initialize(result={}) @title = result['title'] @highlight = result['highlight'] @url = result['url'] @tags = result['tags'] @remote_id = result['remote_id'] @index_id = result['index_id'] @created = result['created'] end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def created @created end |
#highlight ⇒ Object
Returns the value of attribute highlight.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def highlight @highlight end |
#index_id ⇒ Object
Returns the value of attribute index_id.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def index_id @index_id end |
#remote_id ⇒ Object
Returns the value of attribute remote_id.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def remote_id @remote_id end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/srchio/result.rb', line 3 def url @url end |