Module: PPC::Operation::Keyword_operation
Overview
+++++ Keyword opeartion funcitons +++++ #
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
103 104 105 106 107 108 109 |
# File 'lib/ppc/operation.rb', line 103 def method_missing(method_name, *args, &block) if method_name.to_s[/_keyword$/] call( "keyword" ).send(method_name.to_s[/^(get|add|update|delete|enable|pause)/], @auth, [args].flatten ) else super end end |