Module: SmartVkApi::Methods

Included in:
VK
Defined in:
lib/smart_vk_api/methods.rb

Defined Under Namespace

Classes: Proxy

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



3
4
5
# File 'lib/smart_vk_api/methods.rb', line 3

def method_missing(method_name, *arguments, &block)
  Proxy.new(self, method_name)
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/smart_vk_api/methods.rb', line 7

def respond_to?(method_name, include_private = false)
  true # we should respond to any method using Proxy
end