Class: Seatsio::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio.rb

Overview

Main Seatsio Class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountsObject (readonly)

Returns the value of attribute accounts.



13
14
15
# File 'lib/seatsio.rb', line 13

def accounts
  @accounts
end

#chart_reportsObject (readonly)

Returns the value of attribute chart_reports.



13
14
15
# File 'lib/seatsio.rb', line 13

def chart_reports
  @chart_reports
end

#chartsObject (readonly)

Returns the value of attribute charts.



13
14
15
# File 'lib/seatsio.rb', line 13

def charts
  @charts
end

#event_reportsObject (readonly)

Returns the value of attribute event_reports.



13
14
15
# File 'lib/seatsio.rb', line 13

def event_reports
  @event_reports
end

#eventsObject (readonly)

Returns the value of attribute events.



13
14
15
# File 'lib/seatsio.rb', line 13

def events
  @events
end

#hold_tokensObject (readonly)

Returns the value of attribute hold_tokens.



13
14
15
# File 'lib/seatsio.rb', line 13

def hold_tokens
  @hold_tokens
end

#subaccountsObject (readonly)

Returns the value of attribute subaccounts.



13
14
15
# File 'lib/seatsio.rb', line 13

def subaccounts
  @subaccounts
end