Class: Seatsio::UsageByEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsageByEvent

Returns a new instance of UsageByEvent.



487
488
489
490
# File 'lib/seatsio/domain.rb', line 487

def initialize(data)
  @event = UsageEvent.new(data['event'])
  @num_used_objects = data['numUsedObjects']
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



485
486
487
# File 'lib/seatsio/domain.rb', line 485

def event
  @event
end

#num_first_bookingsObject (readonly)

Returns the value of attribute num_first_bookings.



485
486
487
# File 'lib/seatsio/domain.rb', line 485

def num_first_bookings
  @num_first_bookings
end

#num_object_selectionsObject (readonly)

Returns the value of attribute num_object_selections.



485
486
487
# File 'lib/seatsio/domain.rb', line 485

def num_object_selections
  @num_object_selections
end

#num_used_objectsObject (readonly)

Returns the value of attribute num_used_objects.



485
486
487
# File 'lib/seatsio/domain.rb', line 485

def num_used_objects
  @num_used_objects
end