Class: Leptris::XML::Pull::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/leptris/xml/pull.rb

Overview

Constructed positionally by the parser: the keyword-init variant cost ~220ns/event in batch drains (round XXI). Readers (event.type, event.attrs, ...) are unchanged.

Instance Attribute Summary collapse

Instance Attribute Details

#attrsObject

Returns the value of attribute attrs

Returns:

  • (Object)

    the current value of attrs



20
21
22
# File 'lib/leptris/xml/pull.rb', line 20

def attrs
  @attrs
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/leptris/xml/pull.rb', line 20

def name
  @name
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



20
21
22
# File 'lib/leptris/xml/pull.rb', line 20

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



20
21
22
# File 'lib/leptris/xml/pull.rb', line 20

def type
  @type
end