Class: Revolut::Api::Public::Client

Inherits:
Base
  • Object
show all
Defined in:
lib/revolut/api/public/client.rb

Constant Summary

Constants included from Errors

Errors::MAPPING

Instance Attribute Summary

Attributes inherited from Base

#configuration, #headers, #host, #memoized

Instance Method Summary collapse

Methods inherited from Base

#authable?, #check_configuration!, #get, #log, #patch, #post, #request, #split_to_array, #to_uri

Methods included from Errors

#error?

Constructor Details

#initialize(host: "www.revolut.com") ⇒ Client

Returns a new instance of Client.



6
7
8
# File 'lib/revolut/api/public/client.rb', line 6

def initialize(host: "www.revolut.com")
  super(host: host)
end

Instance Method Details

#quotes(from: [], to: [], endpoint: "api/quote/internal") ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/revolut/api/public/client.rb', line 10

def quotes(from: [], to: [], endpoint: "api/quote/internal")
  options     =   {
    user_agent:           ::Revolut::Api::Constants::PUBLIC_USER_AGENT,
    authenticate:         false,
    check_configuration:  false
  }
  
  super(from: from, to: to, endpoint: endpoint, options: options)
end