Module: Bitrix24CloudApi::CRM::PRODUCT

Defined in:
lib/bitrix24_cloud_api/CRM/product.rb

Defined Under Namespace

Modules: PROPERTY

Class Method Summary collapse

Class Method Details

.const_missing(c) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/bitrix24_cloud_api/CRM/product.rb', line 14

def self.const_missing(c)
  if c == :Property
    target_class = Bitrix24CloudApi::CRM.const_get(c)
    target_class.define_singleton_method(:resource_path) { "crm.product.#{c.downcase}" }
    target_class
  end
end