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.



287
288
289
290
291
292
293
294
# File 'lib/seatsio/domain.rb', line 287

def initialize(data)
  @id = data['id']
  @status = data['status']
  @date = data['date'] # TODO: parse_date(data.get("date"))
  @object_label = data['objectLabel']
  @event_id = data['eventId']
  @extra_data = data['extraData']
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def extra_data
  @extra_data
end

#idObject (readonly)

Returns the value of attribute id.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def id
  @id
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def object_label
  @object_label
end

#statusObject (readonly)

Returns the value of attribute status.



285
286
287
# File 'lib/seatsio/domain.rb', line 285

def status
  @status
end