Class: Leptris::XML::Pull::Event
- Inherits:
-
Struct
- Object
- Struct
- Leptris::XML::Pull::Event
- 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
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs
20 21 22 |
# File 'lib/leptris/xml/pull.rb', line 20 def attrs @attrs end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/leptris/xml/pull.rb', line 20 def name @name end |
#text ⇒ Object
Returns the value of attribute text
20 21 22 |
# File 'lib/leptris/xml/pull.rb', line 20 def text @text end |
#type ⇒ Object
Returns the value of attribute type
20 21 22 |
# File 'lib/leptris/xml/pull.rb', line 20 def type @type end |