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.



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

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.



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

def date
  @date
end

#event_idObject (readonly)

Returns the value of attribute event_id.



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

def event_id
  @event_id
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



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

def extra_data
  @extra_data
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#object_labelObject (readonly)

Returns the value of attribute object_label.



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

def object_label
  @object_label
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end