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.



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

#eventObject (readonly)

Returns the value of attribute event.



536
537
538
# File 'lib/seatsio/domain.rb', line 536

def event
  @event
end

#num_first_bookingsObject (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_selectionsObject (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_objectsObject (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