Module: PPC::Operation::Plan_operation
- Included in:
- Account
- Defined in:
- lib/ppc/operation.rb
Overview
+++++ Plan 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
77 78 79 80 81 82 83 |
# File 'lib/ppc/operation.rb', line 77 def method_missing(method_name, *args, &block) if method_name.to_s[/_plan$/] call( "plan" ).send(method_name.to_s[/^(get|add|update|delete|enable|pause)/], @auth, [args].flatten ) else super end end |