Class: Parsers::Base
- Inherits:
-
Object
- Object
- Parsers::Base
- Defined in:
- lib/parsers/base.rb
Constant Summary collapse
- PREFIX =
'passenger'.freeze
Instance Attribute Summary collapse
-
#batch ⇒ Object
readonly
Returns the value of attribute batch.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(batch, xml, prefix: nil, tags: nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(batch, xml, prefix: nil, tags: nil) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/parsers/base.rb', line 7 def initialize(batch, xml, prefix: nil, tags: nil) @batch = batch @xml = xml @prefix = prefix = end |
Instance Attribute Details
#batch ⇒ Object (readonly)
Returns the value of attribute batch.
5 6 7 |
# File 'lib/parsers/base.rb', line 5 def batch @batch end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
5 6 7 |
# File 'lib/parsers/base.rb', line 5 def prefix @prefix end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
5 6 7 |
# File 'lib/parsers/base.rb', line 5 def end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
5 6 7 |
# File 'lib/parsers/base.rb', line 5 def xml @xml end |