Module: Vk
- Defined in:
- lib/vk.rb,
lib/vk/dsl.rb,
lib/vk/base.rb,
lib/vk/city.rb,
lib/vk/post.rb,
lib/vk/user.rb,
lib/vk/album.rb,
lib/vk/audio.rb,
lib/vk/error.rb,
lib/vk/group.rb,
lib/vk/photo.rb,
lib/vk/stats.rb,
lib/vk/access.rb,
lib/vk/client.rb,
lib/vk/prompt.rb,
lib/vk/region.rb,
lib/vk/result.rb,
lib/vk/street.rb,
lib/vk/country.rb,
lib/vk/version.rb,
lib/vk/dsl/wall.rb,
lib/vk/dsl/audio.rb,
lib/vk/dsl/users.rb,
lib/vk/post/wall.rb,
lib/vk/dsl/groups.rb,
lib/vk/dsl/photos.rb,
lib/vk/exceptions.rb,
lib/vk/audio/album.rb,
lib/vk/dsl/friends.rb,
lib/vk/audio/lyrics.rb,
lib/vk/dsl/database.rb,
lib/vk/dsl/newsfeed.rb,
lib/vk/client/oauth2.rb
Defined Under Namespace
Modules: Access, DSL, PromptExtension, Stats
Classes: Album, Audio, Base, City, Client, Country, Error, Group, Photo, Post, Region, Result, Street, TooMuchArguments, User
Constant Summary
collapse
- VK_API =
'5.53'
- VERSION =
"0.6.#{VK_API}"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.app_id ⇒ String
22
23
24
|
# File 'lib/vk.rb', line 22
def app_id
@app_id
end
|
.app_secret ⇒ String
24
25
26
|
# File 'lib/vk.rb', line 24
def app_secret
@app_secret
end
|
Class Method Details
.client(access_token = ENV['VK_ACCESS_TOKEN']) ⇒ Vk::Client
46
47
48
|
# File 'lib/vk.rb', line 46
def client(access_token = ENV['VK_ACCESS_TOKEN'])
@client ||= Client.new(access_token)
end
|
51
52
53
|
# File 'lib/vk.rb', line 51
def dsl!
Client.dsl!
end
|
.log! ⇒ Object
55
56
57
58
|
# File 'lib/vk.rb', line 55
def log!
require 'logger'
self.logger = Logger.new STDOUT
end
|
.logger ⇒ Logger
28
29
30
31
32
33
34
|
# File 'lib/vk.rb', line 28
def self.logger
@logger ||=
begin
require 'logger'
Logger.new(STDOUT)
end
end
|
.logger=(logger) ⇒ Logger
38
39
40
|
# File 'lib/vk.rb', line 38
def self.logger=(logger)
@logger = logger
end
|