module Bitrix24CloudApi::CRM::QUOTE

Public Class Methods

const_missing(c) click to toggle source
# File lib/bitrix24_cloud_api/CRM/quote.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.quote.#{c.downcase}" }
    target_class
  end
end