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.



277
278
279
280
281
282
283
284
# File 'lib/seatsio/domain.rb', line 277

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.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def extra_data
  @extra_data
end

#idObject (readonly)

Returns the value of attribute id.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def id
  @id
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def object_label
  @object_label
end

#statusObject (readonly)

Returns the value of attribute status.



275
276
277
# File 'lib/seatsio/domain.rb', line 275

def status
  @status
end