Module: Sections

Included in:
TessituraRest
Defined in:
lib/tessitura_rest/reference_data/sections.rb

Instance Method Summary collapse

Instance Method Details

#get_all_sections(options = {}) ⇒ Object



2
3
4
5
# File 'lib/tessitura_rest/reference_data/sections.rb', line 2

def get_all_sections(options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint('ReferenceData/Sections'), options)
end

#get_section(id, options = {}) ⇒ Object



7
8
9
10
# File 'lib/tessitura_rest/reference_data/sections.rb', line 7

def get_section(id, options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("ReferenceData/Sections/#{id}"), options)
end