Class: Seatsio::Domain::StatusChange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ StatusChange

Returns a new instance of StatusChange.



413
414
415
416
417
418
419
420
421
422
423
424
# File 'lib/seatsio/domain.rb', line 413

def initialize(data)
  @id = data['id']
  @status = data['status']
  @date = DateTime.iso8601(data['date'])
  @object_label = data['objectLabel']
  @event_id = data['eventId']
  @extra_data = data['extraData']
  @origin = StatusChangeOrigin.new(data['origin'])
  @order_id = data['orderId']
  @quantity = data['quantity']
  @hold_token = data['holdToken']
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def extra_data
  @extra_data
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def hold_token
  @hold_token
end

#idObject (readonly)

Returns the value of attribute id.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def id
  @id
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def object_label
  @object_label
end

#order_idObject (readonly)

Returns the value of attribute order_id.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def order_id
  @order_id
end

#originObject (readonly)

Returns the value of attribute origin.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def origin
  @origin
end

#quantityObject (readonly)

Returns the value of attribute quantity.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def quantity
  @quantity
end

#statusObject (readonly)

Returns the value of attribute status.



411
412
413
# File 'lib/seatsio/domain.rb', line 411

def status
  @status
end