Module: SmartVkApi

Defined in:
lib/smart_vk_api.rb,
lib/smart_vk_api/call.rb,
lib/smart_vk_api/methods.rb,
lib/smart_vk_api/version.rb,
lib/smart_vk_api/constants.rb,
lib/smart_vk_api/configuration.rb

Defined Under Namespace

Modules: Call, Constants, Methods Classes: Configuration, MethodCallError, VK

Constant Summary collapse

VERSION =
"1.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



38
39
40
# File 'lib/smart_vk_api.rb', line 38

def configuration
  @configuration
end

Class Method Details

.call(method_name, params = {}) ⇒ Object



54
55
56
# File 'lib/smart_vk_api.rb', line 54

def self.call(method_name, params = {})
  vk.call(method_name, params)
end

.configure {|configuration| ... } ⇒ Object

Yields:



45
46
47
48
# File 'lib/smart_vk_api.rb', line 45

def self.configure
  self.configuration ||= SmartVkApi::Configuration.new
  yield(configuration)
end

.reset_configurationObject



41
42
43
# File 'lib/smart_vk_api.rb', line 41

def self.reset_configuration
  self.configuration = nil
end

.vkObject



50
51
52
# File 'lib/smart_vk_api.rb', line 50

def self.vk
  SmartVkApi::VK.new
end