Sha256: feefc4ebd891cf7fe2b5640aa5027d1718292841f0331f83690052579b8c6b05
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
require 'ox' 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.1 | lib/money_s3.rb |