Class: Flipside::SearchResult
- Inherits:
-
Object
- Object
- Flipside::SearchResult
- Defined in:
- lib/flipside/search_result.rb
Instance Attribute Summary collapse
-
#display_as ⇒ Object
readonly
Returns the value of attribute display_as.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, display_as, identifier) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(object, display_as, identifier) ⇒ SearchResult
Returns a new instance of SearchResult.
5 6 7 8 9 |
# File 'lib/flipside/search_result.rb', line 5 def initialize(object, display_as, identifier) @object = object @display_as = display_as @identifier = identifier end |
Instance Attribute Details
#display_as ⇒ Object (readonly)
Returns the value of attribute display_as.
3 4 5 |
# File 'lib/flipside/search_result.rb', line 3 def display_as @display_as end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'lib/flipside/search_result.rb', line 3 def identifier @identifier end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
3 4 5 |
# File 'lib/flipside/search_result.rb', line 3 def object @object end |