Class: RestfulieUsing

Inherits:
Object
  • Object
show all
Defined in:
lib/restfulie.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



31
32
33
# File 'lib/restfulie.rb', line 31

def method_missing(sym, *args)
  @current = "Restfulie::Client::HTTP::#{sym.to_s.classify}".constantize.new(@current || Restfulie::Client::HTTP::RequestAdapter.new, *args)
end