Module: Misty::HTTP::MethodBuilder

Included in:
Openstack::ServicePack
Defined in:
lib/misty/http/method_builder.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/misty/http/method_builder.rb', line 4

def method_missing(method_name, *args)
  if method = get_method(method_name)
    method_call(method, *args)
  else
    raise NoMethodError, "#{self.class}: #{method_name}"
  end
end