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.



540
541
542
543
# File 'lib/seatsio/domain.rb', line 540

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.



538
539
540
# File 'lib/seatsio/domain.rb', line 538

def event
  @event
end

#num_first_bookingsObject (readonly)

Returns the value of attribute num_first_bookings.



538
539
540
# File 'lib/seatsio/domain.rb', line 538

def num_first_bookings
  @num_first_bookings
end

#num_object_selectionsObject (readonly)

Returns the value of attribute num_object_selections.



538
539
540
# File 'lib/seatsio/domain.rb', line 538

def num_object_selections
  @num_object_selections
end

#num_used_objectsObject (readonly)

Returns the value of attribute num_used_objects.



538
539
540
# File 'lib/seatsio/domain.rb', line 538

def num_used_objects
  @num_used_objects
end