Class: Moysklad::Entities::SalePrice

Inherits:
Base
  • Object
show all
Includes:
HappyMapper, XmlFix
Defined in:
lib/moysklad/entities/sale_price.rb

Instance Attribute Summary

Attributes inherited from Base

#dump, #universe

Instance Method Summary collapse

Methods inherited from Base

build, #initialize, #to_json, #to_s

Constructor Details

This class inherits a constructor from Moysklad::Entities::Base

Instance Method Details

#priceType(universe) ⇒ Object



12
13
14
15
16
# File 'lib/moysklad/entities/sale_price.rb', line 12

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