Class: Seatsio::ChartReportsClient

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

Instance Method Summary collapse

Constructor Details

#initialize(secret_key, workspace_key, base_url) ⇒ ChartReportsClient

Returns a new instance of ChartReportsClient.



9
10
11
# File 'lib/seatsio/chart_reports.rb', line 9

def initialize(secret_key, workspace_key, base_url)
  @http_client = ::Seatsio::HttpClient.new(secret_key, workspace_key, base_url)
end

Instance Method Details

#by_category_key(chart_key, book_whole_tables = nil) ⇒ Object



17
18
19
# File 'lib/seatsio/chart_reports.rb', line 17

def by_category_key(chart_key, book_whole_tables = nil)
  get_chart_report('byCategoryKey', chart_key, book_whole_tables)
end

#by_category_label(chart_key, book_whole_tables = nil) ⇒ Object



21
22
23
# File 'lib/seatsio/chart_reports.rb', line 21

def by_category_label(chart_key, book_whole_tables = nil)
  get_chart_report('byCategoryLabel', chart_key, book_whole_tables)
end

#by_label(chart_key, book_whole_tables = nil) ⇒ Object



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

def by_label(chart_key, book_whole_tables = nil)
  get_chart_report('byLabel', chart_key, book_whole_tables)
end