Class: Gillbus::Segment
- Inherits:
-
Object
- Object
- Gillbus::Segment
- Extended by:
- Fields
- Includes:
- UpdateAttrs
- Defined in:
- lib/gillbus/structs/segment.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
to hold unserialized data.
Class Method Summary collapse
-
.parse(doc, instance: nil, parent: nil, options: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods included from Fields
Methods included from UpdateAttrs
Instance Attribute Details
#data ⇒ Object
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 |