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.



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

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

Instance Attribute Details

#chart_reportsObject (readonly)

Returns the value of attribute chart_reports.



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

def chart_reports
  @chart_reports
end

#chartsObject (readonly)

Returns the value of attribute charts.



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

def charts
  @charts
end

#event_logObject (readonly)

Returns the value of attribute event_log.



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

def event_log
  @event_log
end

#event_reportsObject (readonly)

Returns the value of attribute event_reports.



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

def event_reports
  @event_reports
end

#eventsObject (readonly)

Returns the value of attribute events.



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

def events
  @events
end

#hold_tokensObject (readonly)

Returns the value of attribute hold_tokens.



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

def hold_tokens
  @hold_tokens
end

#seasonsObject (readonly)

Returns the value of attribute seasons.



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

def seasons
  @seasons
end

#ticket_buyersObject (readonly)

Returns the value of attribute ticket_buyers.



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

def ticket_buyers
  @ticket_buyers
end

#usage_reportsObject (readonly)

Returns the value of attribute usage_reports.



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

def usage_reports
  @usage_reports
end

#workspacesObject (readonly)

Returns the value of attribute workspaces.



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

def workspaces
  @workspaces
end