Sha256: 2d3093dfc11e2d8f92ed33d9d5983954136577b31a36bed029c6f6db1c5e39e9

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

module AmoCRM::Entities
  class SalePrice < Base
    include HappyMapper
    include AmoCRM::Entities::XmlFix

    tag 'price'

    attribute :currencyUuid,  String
    attribute :priceTypeUuid, String
    attribute :value, Float

    def priceType universe
      cache :priceType, universe do
        universe.price_types.find priceTypeUuid
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 lib/amo_crm/entities/sale_price.rb