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.



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

def initialize(http_client)
  @http_client = http_client
end

Instance Method Details

#by_category_key(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



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

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

#by_category_label(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



34
35
36
# File 'lib/seatsio/chart_reports.rb', line 34

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

#by_label(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



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

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

#by_object_type(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



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

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

#by_section(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



42
43
44
# File 'lib/seatsio/chart_reports.rb', line 42

def by_section(chart_key, book_whole_tables = nil, version = nil)
  fetch_chart_report('bySection', chart_key, book_whole_tables, version)
end

#by_zone(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



50
51
52
# File 'lib/seatsio/chart_reports.rb', line 50

def by_zone(chart_key, book_whole_tables = nil, version = nil)
  fetch_chart_report('byZone', chart_key, book_whole_tables, version)
end

#summary_by_category_key(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



30
31
32
# File 'lib/seatsio/chart_reports.rb', line 30

def summary_by_category_key(chart_key, book_whole_tables = nil, version = nil)
  fetch_summary_report('byCategoryKey', chart_key, book_whole_tables, version)
end

#summary_by_category_label(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



38
39
40
# File 'lib/seatsio/chart_reports.rb', line 38

def summary_by_category_label(chart_key, book_whole_tables = nil, version = nil)
  fetch_summary_report('byCategoryLabel', chart_key, book_whole_tables, version)
end

#summary_by_object_type(chart_key, book_whole_tables = nil, version = nil) ⇒ Object



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

def summary_by_object_type(chart_key, book_whole_tables = nil, version = nil)
  fetch_summary_report('byObjectType', chart_key, book_whole_tables, version)
end

#summary_by_section(event_key, book_whole_tables = nil, version = nil) ⇒ Object



46
47
48
# File 'lib/seatsio/chart_reports.rb', line 46

def summary_by_section(event_key, book_whole_tables = nil, version = nil)
  fetch_summary_report('bySection', event_key, book_whole_tables, version)
end

#summary_by_zone(event_key, book_whole_tables = nil, version = nil) ⇒ Object



54
55
56
# File 'lib/seatsio/chart_reports.rb', line 54

def summary_by_zone(event_key, book_whole_tables = nil, version = nil)
  fetch_summary_report('byZone', event_key, book_whole_tables, version)
end