Method: Aphro::Client#method_missing

Defined in:
lib/client/aphro.rb

#method_missing(action, *args, &block) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/client/aphro.rb', line 23

def method_missing action, *args, &block
  raise Aphro::ActionNotFound unless actions.include? action

  if get_actions.include? action
    get action, *args
  elsif post_actions.include? action
    post action, *args
  end
end