Module: ProductionSeason

Included in:
TessituraRest
Defined in:
lib/tessitura_rest/txn/production_season.rb

Instance Method Summary collapse

Instance Method Details

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



2
3
4
5
6
# File 'lib/tessitura_rest/txn/production_season.rb', line 2

def get_production_season(id, options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("TXN/ProductionSeasons/#{id}"), options)
  JSON.parse(response.body)
end

#productions_by_performance_date(start_date = nil, end_date = nil, options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/tessitura_rest/txn/production_season.rb', line 8

def productions_by_performance_date(start_date = nil, end_date = nil, options = {})
  parameters =
    {
      'PerformanceStartDate': start_date,
      'PerformanceEndDate': end_date,
    }
  options.merge!(basic_auth: @auth, headers: @headers)
  options.merge!(:body => parameters)
  response = self.class.post(base_api_endpoint('TXN/ProductionSeasons/Search'), options)
end