Class: Parsers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/parsers/base.rb

Direct Known Subclasses

Group, Process, Root

Constant Summary collapse

PREFIX =
'passenger'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @tags = tags
end

Instance Attribute Details

#batchObject (readonly)

Returns the value of attribute batch.



5
6
7
# File 'lib/parsers/base.rb', line 5

def batch
  @batch
end

#prefixObject (readonly)

Returns the value of attribute prefix.



5
6
7
# File 'lib/parsers/base.rb', line 5

def prefix
  @prefix
end

#tagsObject (readonly)

Returns the value of attribute tags.



5
6
7
# File 'lib/parsers/base.rb', line 5

def tags
  @tags
end

#xmlObject (readonly)

Returns the value of attribute xml.



5
6
7
# File 'lib/parsers/base.rb', line 5

def xml
  @xml
end