module WeiboOAuth2
  module Config
    
    def self.api_key=(val)
      @@api_key = val
    end
    
    def self.api_key
      @@api_key
    end
    
    def self.api_secret=(val)
      @@api_secret = val
    end
    
    def self.api_secret
      @@api_secret
    end
    
    def self.redirect_uri=(val)
      @@redirect_uri = val
    end
    
    def self.redirect_uri
      @@redirect_uri
    end

  end
end
module WeiboOAuth2
  module Config
    
    def self.api_key=(val)
      @@api_key = val
    end
    
    def self.api_key
      @@api_key ||= nil
    end
    
    def self.api_secret=(val)
      @@api_secret = val
    end
    
    def self.api_secret
      @@api_secret ||= nil
    end
    
    def self.redirect_uri=(val)
      @@redirect_uri = val
    end
    
    def self.redirect_uri
      @@redirect_uri ||= nil
    end

  end
end

Fix initialization issue with access_token
Fix initialization issue with access_token

This resolves client initialization issue when specifying access_token
directly instead of giving api_key and api_secret to generate one. The
following line works now:
client = WeiboOAuth2::Client.from_hash(access_token: YOUR_TOKEN)
