Module: Bitrix24CloudApi::CRM::LEAD

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

Class Method Summary collapse

Class Method Details

.const_missing(c) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/bitrix24_cloud_api/CRM/lead.rb', line 4

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