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.
-
#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.
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_reports ⇒ Object (readonly)
Returns the value of attribute chart_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def chart_reports @chart_reports end |
#charts ⇒ Object (readonly)
Returns the value of attribute charts.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def charts @charts end |
#event_log ⇒ Object (readonly)
Returns the value of attribute event_log.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def event_log @event_log end |
#event_reports ⇒ Object (readonly)
Returns the value of attribute event_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def event_reports @event_reports end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def events @events end |
#hold_tokens ⇒ Object (readonly)
Returns the value of attribute hold_tokens.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def hold_tokens @hold_tokens end |
#seasons ⇒ Object (readonly)
Returns the value of attribute seasons.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def seasons @seasons end |
#usage_reports ⇒ Object (readonly)
Returns the value of attribute usage_reports.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def usage_reports @usage_reports end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
14 15 16 |
# File 'lib/seatsio.rb', line 14 def workspaces @workspaces end |