Class: SearchResult
- Inherits:
-
Object
- Object
- SearchResult
- Defined in:
- app/models/search_result.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, options) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(title, options) ⇒ SearchResult
Returns a new instance of SearchResult.
4 5 6 7 |
# File 'app/models/search_result.rb', line 4 def initialize(title, ) @title = title @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'app/models/search_result.rb', line 2 def @options end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
2 3 4 |
# File 'app/models/search_result.rb', line 2 def title @title end |