Sha256: 11f9ec113a292df0927caed52ca702760432625f08e1eab4409547306713bbb6

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

module VkontakteApi
  class Client
    attr_reader :access_token
    
    def initialize(access_token = nil)
      @access_token = access_token
    end
    
    def authorized?
      !@access_token.nil?
    end
    
    def method_missing(method_name, *args, &block)
      args = args.first || {}
      VkontakteApi::Resolver.new(:access_token => @access_token).send(method_name, args, &block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vkontakte_api-0.1 lib/vkontakte_api/client.rb