Class: LibSL::SearchResult
- Inherits:
-
Object
- Object
- LibSL::SearchResult
- Defined in:
- lib/search.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#query_id ⇒ Object
readonly
Returns the value of attribute query_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, query_id, data) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(type, query_id, data) ⇒ SearchResult
Returns a new instance of SearchResult.
7 8 9 10 11 |
# File 'lib/search.rb', line 7 def initialize(type, query_id, data) @type = type @query_id = query_id @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/search.rb', line 5 def data @data end |
#query_id ⇒ Object (readonly)
Returns the value of attribute query_id.
5 6 7 |
# File 'lib/search.rb', line 5 def query_id @query_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/search.rb', line 5 def type @type end |