Class: Seatsio::ChartReportsClient

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

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ ChartReportsClient

Returns a new instance of ChartReportsClient.



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

def initialize(http_client)
  @http_client = http_client
end

Instance Method Details

#by_category_key(chart_key, book_whole_tables = nil) ⇒ Object



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

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



25
26
27
# File 'lib/seatsio/chart_reports.rb', line 25

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

#by_object_type(chart_key, book_whole_tables = nil) ⇒ Object



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

def by_object_type(chart_key, book_whole_tables = nil)
  get_chart_report('byObjectType', chart_key, book_whole_tables)
end