Class: Seatsio::EventReportsClient

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

Overview

Client for fetching event reports

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ EventReportsClient

Returns a new instance of EventReportsClient.



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

def initialize(http_client)
  @http_client = http_client
end

Instance Method Details

#by_availability(event_key, availability = nil) ⇒ Object



86
87
88
# File 'lib/seatsio/event_reports.rb', line 86

def by_availability(event_key, availability = nil)
  fetch_report('byAvailability', event_key, availability)
end

#by_availability_reason(event_key, availability_reason = nil) ⇒ Object



98
99
100
# File 'lib/seatsio/event_reports.rb', line 98

def by_availability_reason(event_key, availability_reason = nil)
  fetch_report('byAvailabilityReason', event_key, availability_reason)
end

#by_category_key(event_key, category_key = nil) ⇒ Object



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

def by_category_key(event_key, category_key = nil)
  fetch_report('byCategoryKey', event_key, category_key)
end

#by_category_label(event_key, category_label = nil) ⇒ Object



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

def by_category_label(event_key, category_label = nil)
  fetch_report('byCategoryLabel', event_key, category_label)
end

#by_channel(event_key, channelKey = nil) ⇒ Object



110
111
112
# File 'lib/seatsio/event_reports.rb', line 110

def by_channel(event_key, channelKey = nil)
  fetch_report('byChannel', event_key, channelKey)
end

#by_label(event_key, label = nil) ⇒ Object



122
123
124
# File 'lib/seatsio/event_reports.rb', line 122

def by_label(event_key, label = nil)
  fetch_report('byLabel', event_key, label)
end

#by_object_type(event_key, object_type = nil) ⇒ Object



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

def by_object_type(event_key, object_type = nil)
  fetch_report('byObjectType', event_key, object_type)
end

#by_order_id(event_key, order_id = nil) ⇒ Object



126
127
128
# File 'lib/seatsio/event_reports.rb', line 126

def by_order_id(event_key, order_id = nil)
  fetch_report('byOrderId', event_key, order_id)
end

#by_section(event_key, section = nil) ⇒ Object



62
63
64
# File 'lib/seatsio/event_reports.rb', line 62

def by_section(event_key, section = nil)
  fetch_report('bySection', event_key, section)
end

#by_status(event_key, status = nil) ⇒ Object



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

def by_status(event_key, status = nil)
  fetch_report('byStatus', event_key, status)
end

#by_zone(event_key, zone = nil) ⇒ Object



74
75
76
# File 'lib/seatsio/event_reports.rb', line 74

def by_zone(event_key, zone = nil)
  fetch_report('byZone', event_key, zone)
end

#deep_summary_by_availability(event_key) ⇒ Object



94
95
96
# File 'lib/seatsio/event_reports.rb', line 94

def deep_summary_by_availability(event_key)
  fetch_deep_summary_report('byAvailability', event_key)
end

#deep_summary_by_availability_reason(event_key) ⇒ Object



106
107
108
# File 'lib/seatsio/event_reports.rb', line 106

def deep_summary_by_availability_reason(event_key)
  fetch_deep_summary_report('byAvailabilityReason', event_key)
end

#deep_summary_by_category_key(event_key) ⇒ Object



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

def deep_summary_by_category_key(event_key)
  fetch_deep_summary_report('byCategoryKey', event_key)
end

#deep_summary_by_category_label(event_key) ⇒ Object



58
59
60
# File 'lib/seatsio/event_reports.rb', line 58

def deep_summary_by_category_label(event_key)
  fetch_deep_summary_report('byCategoryLabel', event_key)
end

#deep_summary_by_channel(event_key) ⇒ Object



118
119
120
# File 'lib/seatsio/event_reports.rb', line 118

def deep_summary_by_channel(event_key)
  fetch_deep_summary_report('byChannel', event_key)
end

#deep_summary_by_object_type(event_key) ⇒ Object



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

def deep_summary_by_object_type(event_key)
  fetch_deep_summary_report('byObjectType', event_key)
end

#deep_summary_by_section(event_key) ⇒ Object



70
71
72
# File 'lib/seatsio/event_reports.rb', line 70

def deep_summary_by_section(event_key)
  fetch_deep_summary_report('bySection', event_key)
end

#deep_summary_by_status(event_key) ⇒ Object



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

def deep_summary_by_status(event_key)
  fetch_deep_summary_report('byStatus', event_key)
end

#deep_summary_by_zone(event_key) ⇒ Object



82
83
84
# File 'lib/seatsio/event_reports.rb', line 82

def deep_summary_by_zone(event_key)
  fetch_deep_summary_report('byZone', event_key)
end

#summary_by_availability(event_key) ⇒ Object



90
91
92
# File 'lib/seatsio/event_reports.rb', line 90

def summary_by_availability(event_key)
  fetch_summary_report('byAvailability', event_key)
end

#summary_by_availability_reason(event_key) ⇒ Object



102
103
104
# File 'lib/seatsio/event_reports.rb', line 102

def summary_by_availability_reason(event_key)
  fetch_summary_report('byAvailabilityReason', event_key)
end

#summary_by_category_key(event_key) ⇒ Object



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

def summary_by_category_key(event_key)
  fetch_summary_report('byCategoryKey', event_key)
end

#summary_by_category_label(event_key) ⇒ Object



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

def summary_by_category_label(event_key)
  fetch_summary_report('byCategoryLabel', event_key)
end

#summary_by_channel(event_key) ⇒ Object



114
115
116
# File 'lib/seatsio/event_reports.rb', line 114

def summary_by_channel(event_key)
  fetch_summary_report('byChannel', event_key)
end

#summary_by_object_type(event_key) ⇒ Object



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

def summary_by_object_type(event_key)
  fetch_summary_report('byObjectType', event_key)
end

#summary_by_section(event_key) ⇒ Object



66
67
68
# File 'lib/seatsio/event_reports.rb', line 66

def summary_by_section(event_key)
  fetch_summary_report('bySection', event_key)
end

#summary_by_status(event_key) ⇒ Object



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

def summary_by_status(event_key)
  fetch_summary_report('byStatus', event_key)
end

#summary_by_zone(event_key) ⇒ Object



78
79
80
# File 'lib/seatsio/event_reports.rb', line 78

def summary_by_zone(event_key)
  fetch_summary_report('byZone', event_key)
end