Sha256: 43c9816438747e98f99b9b866befc55008c3eeda9743a91a13552fa04c424371
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
module Moysklad::Entities class Price < Base include HappyMapper include Moysklad::Entities::XmlFix def self.from_money money p = new p.sumInCurrency = p.sum = money.cents p end attribute :sumInCurrency, Float attribute :sum, Float end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.0.2 | lib/moysklad/entities/price.rb |