Class: Seatsio::UsageForObjectV1

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsageForObjectV1

Returns a new instance of UsageForObjectV1.



558
559
560
561
562
563
564
# File 'lib/seatsio/domain.rb', line 558

def initialize(data)
  @object = data['object']
  @num_first_bookings = data['numFirstBookings']
  @first_booking_date = data['firstBookingDate'] ? DateTime.iso8601(data['firstBookingDate']) : nil
  @num_first_selections = data['numFirstSelections']
  @num_first_bookings_or_selections = data['numFirstBookingsOrSelections']
end

Instance Attribute Details

#first_booking_dateObject (readonly)

Returns the value of attribute first_booking_date.



556
557
558
# File 'lib/seatsio/domain.rb', line 556

def first_booking_date
  @first_booking_date
end

#num_first_bookingsObject (readonly)

Returns the value of attribute num_first_bookings.



556
557
558
# File 'lib/seatsio/domain.rb', line 556

def num_first_bookings
  @num_first_bookings
end

#num_first_bookings_or_selectionsObject (readonly)

Returns the value of attribute num_first_bookings_or_selections.



556
557
558
# File 'lib/seatsio/domain.rb', line 556

def num_first_bookings_or_selections
  @num_first_bookings_or_selections
end

#num_first_selectionsObject (readonly)

Returns the value of attribute num_first_selections.



556
557
558
# File 'lib/seatsio/domain.rb', line 556

def num_first_selections
  @num_first_selections
end

#objectObject (readonly)

Returns the value of attribute object.



556
557
558
# File 'lib/seatsio/domain.rb', line 556

def object
  @object
end