Sha256: b7abfb1a82876643eab1b27646d5fc6011ad818d1e5640d982abebfe0bc0c608

Contents?: true

Size: 662 Bytes

Versions: 21

Compression:

Stored size: 662 Bytes

Contents

module ProductionSeason
  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

  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.to_json)
    response = self.class.post(base_api_endpoint('TXN/ProductionSeasons/Search'), options)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tessitura_rest-2.1.6 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.5 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.4 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.3 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.2 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.1 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.1.0 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.9 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.8 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.7 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.6 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.5 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.4 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.3 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.2 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.1 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-1.5.3.1 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-1.5.3 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-1.5.2 lib/tessitura_rest/txn/production_season.rb
tessitura_rest-2.0.0 lib/tessitura_rest/txn/production_season.rb