Sha256: c13c2b0d44b43436d151b9f4d2297cd60693c65ea5c6a1d2574d6efb3220dd2a

Contents?: true

Size: 603 Bytes

Versions: 16

Compression:

Stored size: 603 Bytes

Contents

class AlphabeticalSearchResultRemote < AlphabeticalSearchResult
  def initialize(host, path, label, options = {})
    @host = host
    @path = path
    @label = label
    @definition = options[:definition]
    @definition_language = options[:definition_language]
  end

  def label
    @label
  end

  def path
    @path
  end

  def url
    URI.join(@host, @path).to_s
  end

  def definition?
    @definition.present?
  end

  def definition
    @definition
  end

  def definition_language
    @definition_language
  end

  def partial_name
    'concepts/alphabetical/search_result_remote'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
iqvoc-4.10.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.9.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.3.3 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.8.2 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.8.1 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.8.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.7.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.6.1 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.5.2 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.6.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.5.1 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.5.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.4.0 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.3.2 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.3.1 app/presenters/alphabetical_search_result_remote.rb
iqvoc-4.3.0 app/presenters/alphabetical_search_result_remote.rb