Module: Bitrix24CloudApi::CRM::REQUISITE

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

Defined Under Namespace

Modules: PRESET Classes: Bankdetail, Link, Preset

Class Method Summary collapse

Class Method Details

.const_missing(c) ⇒ Object



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

def self.const_missing(c)
  if [:Userfield].any?{|x| x == c}
    target_class = Bitrix24CloudApi::CRM.const_get(c)
    target_class.define_singleton_method(:resource_path) { "crm.requisite.#{c.downcase}" }
    target_class
  end
end