Class: Seatsio::UsageByEvent
- Inherits:
-
Object
- Object
- Seatsio::UsageByEvent
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#num_first_bookings ⇒ Object
readonly
Returns the value of attribute num_first_bookings.
-
#num_first_bookings_or_selections ⇒ Object
readonly
Returns the value of attribute num_first_bookings_or_selections.
-
#num_ga_selections_without_booking ⇒ Object
readonly
Returns the value of attribute num_ga_selections_without_booking.
-
#num_non_ga_selections_without_booking ⇒ Object
readonly
Returns the value of attribute num_non_ga_selections_without_booking.
-
#num_object_selections ⇒ Object
readonly
Returns the value of attribute num_object_selections.
-
#num_used_objects ⇒ Object
readonly
Returns the value of attribute num_used_objects.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageByEvent
constructor
A new instance of UsageByEvent.
Constructor Details
#initialize(data) ⇒ UsageByEvent
Returns a new instance of UsageByEvent.
428 429 430 431 432 433 434 435 436 |
# File 'lib/seatsio/domain.rb', line 428 def initialize(data) @event = UsageEvent.new(data['event']) @num_used_objects = data['numUsedObjects'] @num_first_bookings = data['numFirstBookings'] @num_first_bookings_or_selections = data['numFirstBookingsOrSelections'] @num_ga_selections_without_booking = data['numGASelectionsWithoutBooking'] @num_non_ga_selections_without_booking = data['numNonGASelectionsWithoutBooking'] @num_object_selections = data['numObjectSelections'] end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def event @event end |
#num_first_bookings ⇒ Object (readonly)
Returns the value of attribute num_first_bookings.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_first_bookings @num_first_bookings end |
#num_first_bookings_or_selections ⇒ Object (readonly)
Returns the value of attribute num_first_bookings_or_selections.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_first_bookings_or_selections @num_first_bookings_or_selections end |
#num_ga_selections_without_booking ⇒ Object (readonly)
Returns the value of attribute num_ga_selections_without_booking.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_ga_selections_without_booking @num_ga_selections_without_booking end |
#num_non_ga_selections_without_booking ⇒ Object (readonly)
Returns the value of attribute num_non_ga_selections_without_booking.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_non_ga_selections_without_booking @num_non_ga_selections_without_booking end |
#num_object_selections ⇒ Object (readonly)
Returns the value of attribute num_object_selections.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_object_selections @num_object_selections end |
#num_used_objects ⇒ Object (readonly)
Returns the value of attribute num_used_objects.
425 426 427 |
# File 'lib/seatsio/domain.rb', line 425 def num_used_objects @num_used_objects end |