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