Class: Seatsio::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region, secret_key, workspace_key = nil, max_retries = 5) ⇒ Client



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/seatsio.rb', line 16

def initialize(region, secret_key, workspace_key = nil, max_retries = 5)
  base_url = region.url
  @http_client = Seatsio::HttpClient.new(secret_key, workspace_key, base_url, max_retries)
  @charts = ChartsClient.new(@http_client)
  @workspaces = WorkspacesClient.new(@http_client)
  @events = EventsClient.new(@http_client)
  @seasons = SeasonsClient.new(@http_client, self)
  @hold_tokens = HoldTokensClient.new(@http_client)
  @chart_reports = ChartReportsClient.new(@http_client)
  @event_reports = EventReportsClient.new(@http_client)
  @usage_reports = UsageReportsClient.new(@http_client)
end

Instance Attribute Details

#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

#seasonsObject (readonly)

Returns the value of attribute seasons.



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

def seasons
  @seasons
end

#usage_reportsObject (readonly)

Returns the value of attribute usage_reports.



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

def usage_reports
  @usage_reports
end

#workspacesObject (readonly)

Returns the value of attribute workspaces.



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

def workspaces
  @workspaces
end