Module: Einvoice::Utils

Defined in:
lib/einvoice/utils.rb

Instance Method Summary collapse

Instance Method Details

#camelize(hash) ⇒ Object



5
6
7
# File 'lib/einvoice/utils.rb', line 5

def camelize(hash)
  hash.deep_transform_keys { |k| k.to_s.camelize }
end

#encode_xml(hash) ⇒ Object



9
10
11
# File 'lib/einvoice/utils.rb', line 9

def encode_xml(hash)
  ::Gyoku.xml(hash, key_converter: :none)
end