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