Sha256: c062b3701f8299cbaac5d380d23f6d4e60386030f22ecf4a44390443f265b690

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

require 'ox'
require 'money_s3/version'
require 'money_s3/money_data'

module MoneyS3
  def self.parse(raw)
    hash = Ox.load(raw, mode: :hash)

    if hash.key? :MoneyData
      content = hash[:MoneyData]

      raw =
        if content.is_a? Array
          content.last
        else
          content
        end
      MoneyData.new(raw)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.1.0 lib/money_s3.rb