Class: Revolut::Api::Public::Client
- Defined in:
- lib/revolut/api/public/client.rb
Constant Summary
Constants included from Errors
Instance Attribute Summary
Attributes inherited from Base
#configuration, #headers, #host, #memoized
Instance Method Summary collapse
-
#initialize(host: "www.revolut.com") ⇒ Client
constructor
A new instance of Client.
- #quotes(from: [], to: [], endpoint: "api/quote/internal") ⇒ Object
Methods inherited from Base
#authable?, #check_configuration!, #get, #log, #patch, #post, #request, #split_to_array, #to_uri
Methods included from Errors
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") = { user_agent: ::Revolut::Api::Constants::PUBLIC_USER_AGENT, authenticate: false, check_configuration: false } super(from: from, to: to, endpoint: endpoint, options: ) end |