Class: Seatsio::ChartReportsClient
- Inherits:
-
Object
- Object
- Seatsio::ChartReportsClient
- Defined in:
- lib/seatsio/chart_reports.rb
Instance Method Summary collapse
- #by_category_key(chart_key, book_whole_tables = nil) ⇒ Object
- #by_category_label(chart_key, book_whole_tables = nil) ⇒ Object
- #by_label(chart_key, book_whole_tables = nil) ⇒ Object
- #by_object_type(chart_key, book_whole_tables = nil) ⇒ Object
- #by_section(chart_key, book_whole_tables = nil) ⇒ Object
-
#initialize(http_client) ⇒ ChartReportsClient
constructor
A new instance of ChartReportsClient.
- #summary_by_category_key(chart_key, book_whole_tables = nil) ⇒ Object
- #summary_by_category_label(chart_key, book_whole_tables = nil) ⇒ Object
- #summary_by_object_type(chart_key, book_whole_tables = nil) ⇒ Object
- #summary_by_section(event_key, book_whole_tables = nil) ⇒ Object
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
25 26 27 |
# File 'lib/seatsio/chart_reports.rb', line 25 def by_category_key(chart_key, book_whole_tables = nil) fetch_chart_report('byCategoryKey', chart_key, book_whole_tables) end |
#by_category_label(chart_key, book_whole_tables = nil) ⇒ Object
33 34 35 |
# File 'lib/seatsio/chart_reports.rb', line 33 def by_category_label(chart_key, book_whole_tables = nil) fetch_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) fetch_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) fetch_chart_report('byObjectType', chart_key, book_whole_tables) end |
#by_section(chart_key, book_whole_tables = nil) ⇒ Object
41 42 43 |
# File 'lib/seatsio/chart_reports.rb', line 41 def by_section(chart_key, book_whole_tables = nil) fetch_chart_report('bySection', chart_key, book_whole_tables) end |
#summary_by_category_key(chart_key, book_whole_tables = nil) ⇒ Object
29 30 31 |
# File 'lib/seatsio/chart_reports.rb', line 29 def summary_by_category_key(chart_key, book_whole_tables = nil) fetch_summary_report('byCategoryKey', chart_key, book_whole_tables) end |
#summary_by_category_label(chart_key, book_whole_tables = nil) ⇒ Object
37 38 39 |
# File 'lib/seatsio/chart_reports.rb', line 37 def summary_by_category_label(chart_key, book_whole_tables = nil) fetch_summary_report('byCategoryLabel', chart_key, book_whole_tables) end |
#summary_by_object_type(chart_key, book_whole_tables = nil) ⇒ Object
21 22 23 |
# File 'lib/seatsio/chart_reports.rb', line 21 def summary_by_object_type(chart_key, book_whole_tables = nil) fetch_summary_report('byObjectType', chart_key, book_whole_tables) end |
#summary_by_section(event_key, book_whole_tables = nil) ⇒ Object
45 46 47 |
# File 'lib/seatsio/chart_reports.rb', line 45 def summary_by_section(event_key, book_whole_tables = nil) fetch_summary_report('bySection', event_key, book_whole_tables) end |