Module: ProductionExtension
- Included in:
- TessituraRest
- Defined in:
- lib/tessitura_rest/txn/production_extension.rb
Instance Method Summary collapse
Instance Method Details
#get_production(id, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/tessitura_rest/txn/production_extension.rb', line 3 def get_production(id, ={}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Productions/#{id}"), ) JSON.parse(response.body) end |
#get_production_details(id, options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/tessitura_rest/txn/production_extension.rb', line 9 def get_production_details(id, ={}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Productions/#{id}"), ) JSON.parse(response.body) end |