Class: Chartmogul::Base

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

Class Method Summary collapse

Class Method Details

.method_missing(method_name, *arguments, &block) ⇒ Object


3
4
5
6
7
8
# File 'lib/chartmogul/base.rb', line 3

def self.method_missing(method_name, *arguments, &block)
  resource = new
  if resource.respond_to?(method_name, include_private: false)
    resource.send(method_name, *arguments, &block)
  end
end