Class: Search::SearchableResult
- Inherits:
-
Object
- Object
- Search::SearchableResult
- Defined in:
- app/models/search.rb
Instance Attribute Summary collapse
-
#searchable ⇒ Object
readonly
Returns the value of attribute searchable.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(searchable) ⇒ SearchableResult
constructor
A new instance of SearchableResult.
- #url ⇒ Object
Constructor Details
#initialize(searchable) ⇒ SearchableResult
Returns a new instance of SearchableResult.
51 52 53 |
# File 'app/models/search.rb', line 51 def initialize(searchable) @searchable = searchable end |
Instance Attribute Details
#searchable ⇒ Object (readonly)
Returns the value of attribute searchable.
49 50 51 |
# File 'app/models/search.rb', line 49 def searchable @searchable end |
Instance Method Details
#description ⇒ Object
55 56 57 |
# File 'app/models/search.rb', line 55 def description searchable.description end |
#url ⇒ Object
59 60 61 |
# File 'app/models/search.rb', line 59 def url searchable.search_url end |