lib/vk.rb in vk-0.6.5.53 vs lib/vk.rb in vk-0.99.5.53.alpha

- old
+ new

@@ -1,24 +1,19 @@ +# frozen_string_literal: true require 'active_support/core_ext/object/try' -require 'vk/exceptions' +require 'vk/error' require 'vk/version' +# Module enclosing vk.com API client & related objects module Vk + autoload :Access, 'vk/access' autoload :Client, 'vk/client' - autoload :DSL, 'vk/dsl' autoload :Error, 'vk/error' + autoload :Prompt, 'vk/prompt' autoload :Result, 'vk/result' + autoload :Schema, 'vk/schema' - autoload :Base, 'vk/base' - autoload :User, 'vk/user' - autoload :City, 'vk/city' - autoload :Country, 'vk/country' - autoload :Post, 'vk/post' - autoload :Stats, 'vk/stats' - autoload :Group, 'vk/group' - autoload :Album, 'vk/album' - class << self # @return [String] attr_accessor :app_id # @return [String] attr_accessor :app_secret @@ -45,17 +40,10 @@ # @return [Vk::Client] Request object def client(access_token = ENV['VK_ACCESS_TOKEN']) @client ||= Client.new(access_token) end - # @return [Vk::Client] - def dsl! - Client.dsl! - end - def log! require 'logger' self.logger = Logger.new STDOUT end - - dsl! end