Module: Xml2Json::Xml

Defined in:
lib/xml2json.rb

Defined Under Namespace

Modules: Encoding, Version

Class Method Summary collapse

Class Method Details

.build(json_s, opts: nil) ⇒ String

Returns XML string.

Parameters:

  • json_s (String, #to_str)

    JSON string

  • opts (Hash<Symbol, Object>) (defaults to: nil)

    config params

Returns:

  • (String)

    XML string

Raises:

  • (RuntimeError)

    if the input string is invalid

See Also:



15
# File 'lib/xml2json.rb', line 15

def self.build(json_s, opts: nil); end