Class: Search::EntityResult

Inherits:
Object
  • Object
show all
Includes:
BelongsToEntity
Defined in:
app/models/search.rb

Instance Method Summary collapse

Methods included from BelongsToEntity

#description, #entity

Constructor Details

#initialize(entity) ⇒ EntityResult

Returns a new instance of EntityResult.



39
40
41
# File 'app/models/search.rb', line 39

def initialize(entity)
  @entity = entity
end

Instance Method Details

#urlObject



43
44
45
# File 'app/models/search.rb', line 43

def url
  entity.search_url
end