Class: Seatsio::Client
- Inherits:
-
Object
- Object
- Seatsio::Client
- Defined in:
- lib/seatsio.rb
Overview
Main Seatsio Class
Instance Attribute Summary collapse
-
#chart_reports ⇒ Object
readonly
Returns the value of attribute chart_reports.
-
#charts ⇒ Object
readonly
Returns the value of attribute charts.
-
#event_reports ⇒ Object
readonly
Returns the value of attribute event_reports.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#hold_tokens ⇒ Object
readonly
Returns the value of attribute hold_tokens.
-
#subaccounts ⇒ Object
readonly
Returns the value of attribute subaccounts.
-
#usage_reports ⇒ Object
readonly
Returns the value of attribute usage_reports.
-
#workspaces ⇒ Object
readonly
Returns the value of attribute workspaces.
Instance Method Summary collapse
-
#initialize(secret_key, workspace_key = nil, base_url = 'https://api.seatsio.net') ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(secret_key, workspace_key = nil, base_url = 'https://api.seatsio.net') ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/seatsio.rb', line 17 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 |
Instance Attribute Details
#chart_reports ⇒ Object (readonly)
Returns the value of attribute chart_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def chart_reports @chart_reports end |
#charts ⇒ Object (readonly)
Returns the value of attribute charts.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def charts @charts end |
#event_reports ⇒ Object (readonly)
Returns the value of attribute event_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def event_reports @event_reports end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def events @events end |
#hold_tokens ⇒ Object (readonly)
Returns the value of attribute hold_tokens.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def hold_tokens @hold_tokens end |
#subaccounts ⇒ Object (readonly)
Returns the value of attribute subaccounts.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def subaccounts @subaccounts end |
#usage_reports ⇒ Object (readonly)
Returns the value of attribute usage_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def usage_reports @usage_reports end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def workspaces @workspaces end |