Class: QaServer::AuthorityListPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/qa_server/authority_list_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urls_data:) ⇒ AuthorityListPresenter

rubocop:enable Style/AsciiComments



19
20
21
# File 'app/presenters/qa_server/authority_list_presenter.rb', line 19

def initialize(urls_data:)
  @urls_data = urls_data
end

Instance Attribute Details

#urls_dataArray<Hash> (readonly)

rubocop:disable Style/AsciiComments

Examples:

{ status: :PASS,
  status_label: '',
  authority_name: 'LOCNAMES_LD4L_CACHE',
  subauthority_name: 'person',
  service: 'ld4l_cache',
  action: 'search',
  url: '/qa/search/linked_data/locnames_ld4l_cache/person?q=mark twain&maxRecords=4',
  err_message: '' }

Returns:

  • (Array<Hash>)

    A list of status data for each scenario tested.



16
17
18
# File 'app/presenters/qa_server/authority_list_presenter.rb', line 16

def urls_data
  @urls_data
end