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.



529
530
531
532
# File 'lib/seatsio/domain.rb', line 529

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.



527
528
529
# File 'lib/seatsio/domain.rb', line 527

def event
  @event
end

#num_first_bookingsObject (readonly)

Returns the value of attribute num_first_bookings.



527
528
529
# File 'lib/seatsio/domain.rb', line 527

def num_first_bookings
  @num_first_bookings
end

#num_object_selectionsObject (readonly)

Returns the value of attribute num_object_selections.



527
528
529
# File 'lib/seatsio/domain.rb', line 527

def num_object_selections
  @num_object_selections
end

#num_used_objectsObject (readonly)

Returns the value of attribute num_used_objects.



527
528
529
# File 'lib/seatsio/domain.rb', line 527

def num_used_objects
  @num_used_objects
end