Class: XML2JSON::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



87
88
89
90
91
# File 'lib/xml2json.rb', line 87

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.



85
86
87
# File 'lib/xml2json.rb', line 85

def attributes_key
  @attributes_key
end

#namespaces_keyObject

Returns the value of attribute namespaces_key.



85
86
87
# File 'lib/xml2json.rb', line 85

def namespaces_key
  @namespaces_key
end

#text_keyObject

Returns the value of attribute text_key.



85
86
87
# File 'lib/xml2json.rb', line 85

def text_key
  @text_key
end