Method: Patch::CreateHotelEstimateRequest.method_missing

Defined in:
lib/patch_ruby/models/create_hotel_estimate_request.rb

.method_missing(message, *args, &block) ⇒ Object

Allows models with corresponding API classes to delegate API operations to those API classes Exposes Model.operation_id which delegates to ModelsApi.new.operation_id Eg. Order.create_order delegates to OrdersApi.new.create_order



79
80
81
82
83
84
85
# File 'lib/patch_ruby/models/create_hotel_estimate_request.rb', line 79

def self.method_missing(message, *args, &block)
  if Object.const_defined?('Patch::CreateHotelEstimateRequestsApi::OPERATIONS') && Patch::CreateHotelEstimateRequestsApi::OPERATIONS.include?(message)
    Patch::CreateHotelEstimateRequestsApi.new.send(message, *args)
  else
    super
  end
end