Class: Seatsio::UsageForObjectV1
- Inherits:
-
Object
- Object
- Seatsio::UsageForObjectV1
- 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.
-
#num_first_selections ⇒ Object
readonly
Returns the value of attribute num_first_selections.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageForObjectV1
constructor
A new instance of UsageForObjectV1.
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_date ⇒ Object (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_bookings ⇒ Object (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_selections ⇒ Object (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_selections ⇒ Object (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 |
#object ⇒ Object (readonly)
Returns the value of attribute object.
556 557 558 |
# File 'lib/seatsio/domain.rb', line 556 def object @object end |