Class: Gillbus::Trip

Inherits:
Object
  • Object
show all
Extended by:
Fields
Includes:
UpdateAttrs
Defined in:
lib/gillbus/structs/trip.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Fields

parse, parser, parser_class

Methods included from UpdateAttrs

#initialize, #update_attrs

Instance Attribute Details

#dataObject

to hold unserialized data



215
216
217
# File 'lib/gillbus/structs/trip.rb', line 215

def data
  @data
end

Class Method Details

.parse(doc, instance: nil, parent: nil, options: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



218
219
220
221
222
223
# File 'lib/gillbus/structs/trip.rb', line 218

def self.parse(doc, instance: nil, parent: nil, options: {})
  instance = super
  instance.data = doc
  instance.options = TripOptions.build_blank if instance.options.nil?
  instance
end