Class: Verona::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/verona/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



8
9
10
# File 'lib/verona/client.rb', line 8

def initialize
  refresh_access_token
end

Instance Method Details

#verify!(attributes = {}, options) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/verona/client.rb', line 12

def verify!(attributes = {}, options)
  json = json_response_from_verifying_token(attributes)
  error = json['error'] if json['error']
  if !error and json
    Receipt.new(json.merge(attributes)) 
  else 
    false 
  end
end