Module: ProductionSeason
- Included in:
- TessituraRest
- Defined in:
- lib/tessitura_rest/txn/production_season.rb
Instance Method Summary collapse
- #get_production_season(id, options = {}) ⇒ Object
- #productions_by_performance_date(start_date = nil, end_date = nil, options = {}) ⇒ Object
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, = {}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/ProductionSeasons/#{id}"), ) 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, = {}) parameters = { 'PerformanceStartDate': start_date, 'PerformanceEndDate': end_date, } .merge!(basic_auth: @auth, headers: @headers) .merge!(:body => parameters.to_json) response = self.class.post(base_api_endpoint('TXN/ProductionSeasons/Search'), ) end |