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.



418
419
420
421
422
423
424
425
426
# File 'lib/seatsio/domain.rb', line 418

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'])
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def extra_data
  @extra_data
end

#idObject (readonly)

Returns the value of attribute id.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def id
  @id
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def object_label
  @object_label
end

#originObject (readonly)

Returns the value of attribute origin.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def origin
  @origin
end

#statusObject (readonly)

Returns the value of attribute status.



416
417
418
# File 'lib/seatsio/domain.rb', line 416

def status
  @status
end