Class: XML2JSON::Configuration
- Inherits:
-
Object
- Object
- XML2JSON::Configuration
- Defined in:
- lib/xml2json.rb
Instance Attribute Summary collapse
-
#attributes_key ⇒ Object
Returns the value of attribute attributes_key.
-
#namespaces_key ⇒ Object
Returns the value of attribute namespaces_key.
-
#text_key ⇒ Object
Returns the value of attribute text_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute attributes_key.
85 86 87 |
# File 'lib/xml2json.rb', line 85 def attributes_key @attributes_key end |
#namespaces_key ⇒ Object
Returns the value of attribute namespaces_key.
85 86 87 |
# File 'lib/xml2json.rb', line 85 def namespaces_key @namespaces_key end |
#text_key ⇒ Object
Returns the value of attribute text_key.
85 86 87 |
# File 'lib/xml2json.rb', line 85 def text_key @text_key end |