Class: Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/xml2json/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



4
5
6
7
8
# File 'lib/xml2json/configuration.rb', line 4

def initialize
  self.attributes_key = '_attributes'
  self.namespaces_key = '_namespaces'
  self.text_key = '_text'
end

Instance Attribute Details

#attributes_keyObject

Returns the value of attribute attributes_key.



2
3
4
# File 'lib/xml2json/configuration.rb', line 2

def attributes_key
  @attributes_key
end

#namespaces_keyObject

Returns the value of attribute namespaces_key.



2
3
4
# File 'lib/xml2json/configuration.rb', line 2

def namespaces_key
  @namespaces_key
end

#text_keyObject

Returns the value of attribute text_key.



2
3
4
# File 'lib/xml2json/configuration.rb', line 2

def text_key
  @text_key
end