Sha256: c04e9cb2bbf1ccfb213016ebd0ad62ae05d4042a2a0e797f1bb2003e7557c11e

Contents?: true

Size: 1.15 KB

Versions: 25

Compression:

Stored size: 1.15 KB

Contents

require 'seatsio/version'
require 'seatsio/charts'
require 'seatsio/subaccounts'
require 'seatsio/workspaces'
require 'seatsio/events'
require 'seatsio/hold_tokens'
require 'seatsio/chart_reports'
require 'seatsio/event_reports'
require 'seatsio/usage_reports'

module Seatsio
  # Main Seatsio Class
  class Client
    attr_reader :charts, :subaccounts, :workspaces, :events,
                :hold_tokens, :chart_reports, :event_reports, :usage_reports

    def initialize(secret_key, workspace_key = nil, base_url = 'https://api.seatsio.net')
      @charts = ChartsClient.new(secret_key, workspace_key, base_url)
      @subaccounts = SubaccountsClient.new(secret_key, workspace_key, base_url)
      @workspaces = WorkspacesClient.new(secret_key, base_url)
      @events = EventsClient.new(secret_key, workspace_key, base_url)
      @hold_tokens = HoldTokensClient.new(secret_key, workspace_key, base_url)
      @chart_reports = ChartReportsClient.new(secret_key, workspace_key, base_url)
      @event_reports = EventReportsClient.new(secret_key, workspace_key, base_url)
      @usage_reports = UsageReportsClient.new(secret_key, workspace_key, base_url)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
seatsio-30.2.0 lib/seatsio.rb
seatsio-30.1.1 lib/seatsio.rb
seatsio-30.0.0 lib/seatsio.rb
seatsio-29.0.0 lib/seatsio.rb
seatsio-28.2.0 lib/seatsio.rb
seatsio-28.1.0 lib/seatsio.rb
seatsio-28.0.0 lib/seatsio.rb
seatsio-27.0.0 lib/seatsio.rb
seatsio-26.2.0 lib/seatsio.rb
seatsio-26.1.0 lib/seatsio.rb
seatsio-26.0.0 lib/seatsio.rb
seatsio-25.3.0 lib/seatsio.rb
seatsio-25.2.0 lib/seatsio.rb
seatsio-25.1.0 lib/seatsio.rb
seatsio-25.0.0 lib/seatsio.rb
seatsio-24.4.0 lib/seatsio.rb
seatsio-24.3.0 lib/seatsio.rb
seatsio-24.2.0 lib/seatsio.rb
seatsio-24.1.0 lib/seatsio.rb
seatsio-24.0.0 lib/seatsio.rb