module DTK::Client::Operation::ModuleServiceCommon::ClassMixin
Public Instance Methods
method_missing(method, *args, &body)
click to toggle source
Calls superclass method
# File lib/client/operation/module_service_common.rb, line 22 def method_missing(method, *args, &body) if operations.include?(method) operation_class(method).send(:execute, *args, &body) else super end end
respond_to?(method)
click to toggle source
Calls superclass method
# File lib/client/operation/module_service_common.rb, line 30 def respond_to?(method) operations.include?(method) or super end
Private Instance Methods
operation_class(operation)
click to toggle source
# File lib/client/operation/module_service_common.rb, line 42 def operation_class(operation) const_get snake_to_camel_case(operation) end
operations()
click to toggle source
# File lib/client/operation/module_service_common.rb, line 38 def operations self::OPERATIONS end