Sha256: 707ac1bab0ee3465cf9d013e44a54160ff4d97a156a671b9d422945b677434dd

Contents?: true

Size: 663 Bytes

Versions: 16

Compression:

Stored size: 663 Bytes

Contents

module Moysklad::Entities
  class Currency < Base
    class Unit < Base
      attribute :gender, String
      attribute :s1, String
      attribute :s2, String
      attribute :s5, String
    end
    attribute :meta, Meta
    attribute :system, Boolean
    attribute :name, String
    attribute :fullName, String
    attribute :rate, Float
    attribute :multiplicity, Integer
    attribute :rateUpdateType, String
    attribute :code, String
    attribute :isoCode, String
    attribute :majorUnit, Unit
    attribute :minorUnit, Unit
    attribute :archived, Boolean
    attribute :default, Boolean

    def id
      meta.href.split('/').last
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
moysklad-0.5 lib/moysklad/entities/currency.rb
moysklad-0.4.10 lib/moysklad/entities/currency.rb
moysklad-0.4.9 lib/moysklad/entities/currency.rb
moysklad-0.4.8 lib/moysklad/entities/currency.rb
moysklad-0.4.7 lib/moysklad/entities/currency.rb
moysklad-0.4.6 lib/moysklad/entities/currency.rb
moysklad-0.4.5 lib/moysklad/entities/currency.rb
moysklad-0.4.4 lib/moysklad/entities/currency.rb
moysklad-0.4.3 lib/moysklad/entities/currency.rb
moysklad-0.4.2 lib/moysklad/entities/currency.rb
moysklad-0.4.1 lib/moysklad/entities/currency.rb
moysklad-0.4.0 lib/moysklad/entities/currency.rb
moysklad-0.3.4 lib/moysklad/entities/currency.rb
moysklad-0.3.3 lib/moysklad/entities/currency.rb
moysklad-0.3.2 lib/moysklad/entities/currency.rb
moysklad-0.3.1 lib/moysklad/entities/currency.rb