Class: Seatsio::Domain::UsageForObject
- Inherits:
-
Object
- Object
- Seatsio::Domain::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.
404 405 406 407 408 409 410 |
# File 'lib/seatsio/domain.rb', line 404 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.
402 403 404 |
# File 'lib/seatsio/domain.rb', line 402 def first_booking_date @first_booking_date end |
#num_first_bookings ⇒ Object (readonly)
Returns the value of attribute num_first_bookings.
402 403 404 |
# File 'lib/seatsio/domain.rb', line 402 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.
402 403 404 |
# File 'lib/seatsio/domain.rb', line 402 def num_first_bookings_or_selections @num_first_bookings_or_selections end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
402 403 404 |
# File 'lib/seatsio/domain.rb', line 402 def object @object end |