Class: Seatsio::UsageForObject
- Inherits:
-
Object
- Object
- Seatsio::UsageForObject
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#first_booking_date ⇒ Object
readonly
Returns the value of attribute first_booking_date.
-
#num_first_bookings ⇒ Object
readonly
Returns the value of attribute num_first_bookings.
-
#num_first_bookings_or_selections ⇒ Object
readonly
Returns the value of attribute num_first_bookings_or_selections.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageForObject
constructor
A new instance of UsageForObject.
Constructor Details
#initialize(data) ⇒ UsageForObject
Returns a new instance of UsageForObject.
451 452 453 454 455 456 457 |
# File 'lib/seatsio/domain.rb', line 451 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_date ⇒ Object (readonly)
Returns the value of attribute first_booking_date.
449 450 451 |
# File 'lib/seatsio/domain.rb', line 449 def first_booking_date @first_booking_date end |
#num_first_bookings ⇒ Object (readonly)
Returns the value of attribute num_first_bookings.
449 450 451 |
# File 'lib/seatsio/domain.rb', line 449 def num_first_bookings @num_first_bookings end |
#num_first_bookings_or_selections ⇒ Object (readonly)
Returns the value of attribute num_first_bookings_or_selections.
449 450 451 |
# File 'lib/seatsio/domain.rb', line 449 def num_first_bookings_or_selections @num_first_bookings_or_selections end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
449 450 451 |
# File 'lib/seatsio/domain.rb', line 449 def object @object end |