Class: Revolut::Api::Configuration
- Inherits:
-
Object
- Object
- Revolut::Api::Configuration
- Defined in:
- lib/revolut/api/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#client_version ⇒ Object
Returns the value of attribute client_version.
-
#device_id ⇒ Object
Returns the value of attribute device_id.
-
#device_model ⇒ Object
Returns the value of attribute device_model.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/revolut/api/configuration.rb', line 9 def initialize self.user_id = nil self.access_token = nil self.user_agent = "Revolut/com.revolut.revolut (iPhone; iOS 11.1)" self.device_id = SecureRandom.uuid self.device_model = "iPhone8,1" self.api_version = "1" self.client_version = "5.12.1" self.verbose = false end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
4 5 6 |
# File 'lib/revolut/api/configuration.rb', line 4 def access_token @access_token end |
#api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/revolut/api/configuration.rb', line 6 def api_version @api_version end |
#client_version ⇒ Object
Returns the value of attribute client_version.
6 7 8 |
# File 'lib/revolut/api/configuration.rb', line 6 def client_version @client_version end |
#device_id ⇒ Object
Returns the value of attribute device_id.
5 6 7 |
# File 'lib/revolut/api/configuration.rb', line 5 def device_id @device_id end |
#device_model ⇒ Object
Returns the value of attribute device_model.
5 6 7 |
# File 'lib/revolut/api/configuration.rb', line 5 def device_model @device_model end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
4 5 6 |
# File 'lib/revolut/api/configuration.rb', line 4 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/revolut/api/configuration.rb', line 4 def user_id @user_id end |
#verbose ⇒ Object
Returns the value of attribute verbose.
7 8 9 |
# File 'lib/revolut/api/configuration.rb', line 7 def verbose @verbose end |