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

Returns a new instance of Client.



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

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)
  @event_log = EventLogClient.new(@http_client)
end

Instance Attribute Details

#chart_reportsObject (readonly)

Returns the value of attribute chart_reports.



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

def chart_reports
  @chart_reports
end

#chartsObject (readonly)

Returns the value of attribute charts.



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

def charts
  @charts
end

#event_logObject (readonly)

Returns the value of attribute event_log.



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

def event_log
  @event_log
end

#event_reportsObject (readonly)

Returns the value of attribute event_reports.



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

def event_reports
  @event_reports
end

#eventsObject (readonly)

Returns the value of attribute events.



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

def events
  @events
end

#hold_tokensObject (readonly)

Returns the value of attribute hold_tokens.



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

def hold_tokens
  @hold_tokens
end

#seasonsObject (readonly)

Returns the value of attribute seasons.



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

def seasons
  @seasons
end

#usage_reportsObject (readonly)

Returns the value of attribute usage_reports.



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

def usage_reports
  @usage_reports
end

#workspacesObject (readonly)

Returns the value of attribute workspaces.



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

def workspaces
  @workspaces
end