Sha256: 4598d32648bb967322a987f000a6b9146d8b0230ee49d51eac743e099ddeff99

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

require 'require_all'
require_rel 'tessitura_rest'
require 'json'
require 'httparty'

class TessituraRest
  include HTTParty

  include Accounts
  include Actions
  include Addresses
  include Attributes
  include BillingSchedules
  include Cart
  include Constituencies
  include Countries
  include Diagnostics
  include Email
  include GiftCertificates
  include Issues
  include LocalProcedure
  include Login
  include Orders
  include Package
  include PaymentPlanExtension
  include PerformanceExtension
  include Phones
  include PriceTypes
  include ProductionExtension
  include ProductKeywords
  include ProductionSeason
  include Sections
  include Session
  include SecurityUserGroups
  include States
  include WebContents
  include WebLogins

  def initialize(options={})
    @auth = { username: ENV['TESSITURA_USERNAME'],
              password: ENV['TESSITURA_PASSWORD'] }
    @headers = { 'Accept': 'application/json' }
  end

  def base_api_endpoint(end_point)
    "#{ENV['TESSITURA_URL']}#{end_point}"
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tessitura_rest-0.5.12 lib/tessitura_rest.rb
tessitura_rest-0.5.11 lib/tessitura_rest.rb
tessitura_rest-0.5.10 lib/tessitura_rest.rb
tessitura_rest-0.5.9 lib/tessitura_rest.rb
tessitura_rest-0.5.8 lib/tessitura_rest.rb
tessitura_rest-0.5.7 lib/tessitura_rest.rb
tessitura_rest-0.5.6 lib/tessitura_rest.rb
tessitura_rest-0.5.5 lib/tessitura_rest.rb