Class: OauthTokenVerifier::Providers::Vk
- Inherits:
-
Object
- Object
- OauthTokenVerifier::Providers::Vk
- Defined in:
- lib/oauth_token_verifier/providers/vk.rb
Defined Under Namespace
Classes: BaseFields
Instance Method Summary collapse
-
#initialize ⇒ Vk
constructor
A new instance of Vk.
- #verify_token(context) ⇒ Object
Constructor Details
#initialize ⇒ Vk
Returns a new instance of Vk.
8 9 10 11 12 |
# File 'lib/oauth_token_verifier/providers/vk.rb', line 8 def initialize @data_fields = Struct.new(*config.fields_mapping.values) @request_fields = config.fields_mapping.keys.join(',') @version = config.version end |
Instance Method Details
#verify_token(context) ⇒ Object
14 15 16 17 18 |
# File 'lib/oauth_token_verifier/providers/vk.rb', line 14 def verify_token(context) uri = build_uri(context.token) response = check_response(uri) parse_response(response) end |