Class: GdsApi::Support

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/support.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

#create_foi_request(request_details) ⇒ Object


4
5
6
# File 'lib/gds_api/support.rb', line 4

def create_foi_request(request_details)
  post_json("#{base_url}/foi_requests", foi_request: request_details)
end

#create_named_contact(request_details) ⇒ Object


8
9
10
# File 'lib/gds_api/support.rb', line 8

def create_named_contact(request_details)
  post_json("#{base_url}/named_contacts", named_contact: request_details)
end

#feedback_url(slug) ⇒ Object


12
13
14
# File 'lib/gds_api/support.rb', line 12

def feedback_url(slug)
  "#{base_url}/anonymous_feedback?path=#{slug}"
end