Class: Gillbus::Segment

Inherits:
Object
  • Object
show all
Extended by:
Fields
Includes:
UpdateAttrs
Defined in:
lib/gillbus/structs/segment.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



191
192
193
# File 'lib/gillbus/structs/segment.rb', line 191

def data
  @data
end

Class Method Details

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

rubocop:disable Lint/UnusedMethodArgument



194
195
196
197
198
# File 'lib/gillbus/structs/segment.rb', line 194

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