Sha256: eede5f97a57deb3cbe132ddf45b77aa6bbc7941b8a13d0045dd5508480ee0614
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
require 'active_support/core_ext/object/try' module Vk extend self autoload :DSL, 'vk/dsl' autoload :Request, 'vk/request' autoload :Base, 'vk/base' autoload :User, 'vk/user' autoload :City, 'vk/city' autoload :Country, 'vk/country' autoload :Post, 'vk/post' class << self attr_accessor :app_id, :app_secret, :logger end # Request to vk.com API # @return [Vk::Request] Request object def request @request ||= Request.new end def log(text, severity = :debug) Vk.logger.try(severity, text) end def dsl! Request.dsl! end def log! require 'logger' self.logger = Logger.new STDOUT end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vk-0.0.4 | lib/vk.rb |
vk-0.0.3 | lib/vk.rb |