Method: Patch::ParentTechnologyType.method_missing
- Defined in:
- lib/patch_ruby/models/parent_technology_type.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
56 57 58 59 60 61 62 |
# File 'lib/patch_ruby/models/parent_technology_type.rb', line 56 def self.method_missing(, *args, &block) if Object.const_defined?('Patch::ParentTechnologyTypesApi::OPERATIONS') && Patch::ParentTechnologyTypesApi::OPERATIONS.include?() Patch::ParentTechnologyTypesApi.new.send(, *args) else super end end |