Class: GdsApi::PerformancePlatform::DataIn

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/performance_platform/data_in.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#client, #create_client, #get_list, #initialize, #url_for_slug

Constructor Details

This class inherits a constructor from GdsApi::Base

Instance Method Details

#corporate_content_problem_report_count(entries) ⇒ Object



14
15
16
# File 'lib/gds_api/performance_platform/data_in.rb', line 14

def corporate_content_problem_report_count(entries)
  post_json("#{endpoint}/data/gov-uk-content/feedback-count", entries)
end

#corporate_content_urls_with_the_most_problem_reports(entries) ⇒ Object



18
19
20
# File 'lib/gds_api/performance_platform/data_in.rb', line 18

def corporate_content_urls_with_the_most_problem_reports(entries)
  post_json("#{endpoint}/data/gov-uk-content/top-urls", entries)
end

#submit_problem_report_daily_totals(entries) ⇒ Object



22
23
24
# File 'lib/gds_api/performance_platform/data_in.rb', line 22

def submit_problem_report_daily_totals(entries)
  post_json("#{endpoint}/data/govuk-info/page-contacts", entries)
end

#submit_service_feedback_day_aggregate(slug, request_details) ⇒ Object



8
9
10
11
12
# File 'lib/gds_api/performance_platform/data_in.rb', line 8

def submit_service_feedback_day_aggregate(slug, request_details)
  post_json("#{endpoint}/data/#{slug}/customer-satisfaction", request_details)
rescue GdsApi::HTTPNotFound
  raise PerformancePlatformDatasetNotConfigured, "Dataset for slug [#{slug}] not set up"
end