Class: Flipside::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/flipside/search_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_asObject (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

#identifierObject (readonly)

Returns the value of attribute identifier.



3
4
5
# File 'lib/flipside/search_result.rb', line 3

def identifier
  @identifier
end

#objectObject (readonly)

Returns the value of attribute object.



3
4
5
# File 'lib/flipside/search_result.rb', line 3

def object
  @object
end