Class: Seatsio::Client
- Inherits:
-
Object
- Object
- Seatsio::Client
- Defined in:
- lib/seatsio.rb
Instance Attribute Summary collapse
-
#chart_reports ⇒ Object
readonly
Returns the value of attribute chart_reports.
-
#charts ⇒ Object
readonly
Returns the value of attribute charts.
-
#event_log ⇒ Object
readonly
Returns the value of attribute event_log.
-
#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.
-
#seasons ⇒ Object
readonly
Returns the value of attribute seasons.
-
#ticket_buyers ⇒ Object
readonly
Returns the value of attribute ticket_buyers.
-
#usage_reports ⇒ Object
readonly
Returns the value of attribute usage_reports.
-
#workspaces ⇒ Object
readonly
Returns the value of attribute workspaces.
Instance Method Summary collapse
-
#initialize(region, secret_key, workspace_key = nil, max_retries = 5) ⇒ Client
constructor
A new instance of Client.
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_reports ⇒ Object (readonly)
Returns the value of attribute chart_reports.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def chart_reports @chart_reports end |
#charts ⇒ Object (readonly)
Returns the value of attribute charts.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def charts @charts end |
#event_log ⇒ Object (readonly)
Returns the value of attribute event_log.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def event_log @event_log end |
#event_reports ⇒ Object (readonly)
Returns the value of attribute event_reports.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def event_reports @event_reports end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def events @events end |
#hold_tokens ⇒ Object (readonly)
Returns the value of attribute hold_tokens.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def hold_tokens @hold_tokens end |
#seasons ⇒ Object (readonly)
Returns the value of attribute seasons.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def seasons @seasons end |
#ticket_buyers ⇒ Object (readonly)
Returns the value of attribute ticket_buyers.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def ticket_buyers @ticket_buyers end |
#usage_reports ⇒ Object (readonly)
Returns the value of attribute usage_reports.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def usage_reports @usage_reports end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
15 16 17 |
# File 'lib/seatsio.rb', line 15 def workspaces @workspaces end |