Sha256: a16cd6d5d58139cedc7174bb69b8fc9c1e6eab29a88d8a05b91f84f10af2affb

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module AmoCRM::Entities
  class Price < Base
    include HappyMapper
    include AmoCRM::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
amo_crm-0.2.2 lib/amo_crm/entities/price.rb