Class: Seatsio::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.



540
541
542
543
544
545
546
547
548
549
550
551
552
553
# File 'lib/seatsio/domain.rb', line 540

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']
  @is_present_on_chart = data['isPresentOnChart']
  @not_present_on_chart_reason = data['notPresentOnChartReason']
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def extra_data
  @extra_data
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def hold_token
  @hold_token
end

#idObject (readonly)

Returns the value of attribute id.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def id
  @id
end

#is_present_on_chartObject (readonly)

Returns the value of attribute is_present_on_chart.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def is_present_on_chart
  @is_present_on_chart
end

#not_present_on_chart_reasonObject (readonly)

Returns the value of attribute not_present_on_chart_reason.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def not_present_on_chart_reason
  @not_present_on_chart_reason
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def object_label
  @object_label
end

#order_idObject (readonly)

Returns the value of attribute order_id.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def order_id
  @order_id
end

#originObject (readonly)

Returns the value of attribute origin.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def origin
  @origin
end

#quantityObject (readonly)

Returns the value of attribute quantity.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def quantity
  @quantity
end

#statusObject (readonly)

Returns the value of attribute status.



537
538
539
# File 'lib/seatsio/domain.rb', line 537

def status
  @status
end