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_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.
538 539 540 541 |
# File 'lib/seatsio/domain.rb', line 538 def initialize(data) @event = UsageEvent.new(data['event']) @num_used_objects = data['numUsedObjects'] end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
536 537 538 |
# File 'lib/seatsio/domain.rb', line 536 def event @event end |
#num_first_bookings ⇒ Object (readonly)
Returns the value of attribute num_first_bookings.
536 537 538 |
# File 'lib/seatsio/domain.rb', line 536 def num_first_bookings @num_first_bookings end |
#num_object_selections ⇒ Object (readonly)
Returns the value of attribute num_object_selections.
536 537 538 |
# File 'lib/seatsio/domain.rb', line 536 def num_object_selections @num_object_selections end |
#num_used_objects ⇒ Object (readonly)
Returns the value of attribute num_used_objects.
536 537 538 |
# File 'lib/seatsio/domain.rb', line 536 def num_used_objects @num_used_objects end |