Class: PayTrace::Configuration
- Inherits:
-
Object
- Object
- PayTrace::Configuration
- Defined in:
- lib/paytrace/configuration.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#password ⇒ Object
Returns the value of attribute password.
-
#path ⇒ Object
Returns the value of attribute path.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #url ⇒ Object
Constructor Details
#initialize ⇒ Configuration
5 6 7 8 9 |
# File 'lib/paytrace/configuration.rb', line 5 def initialize @domain = "paytrace.com" @connection = Faraday.new @path = "api/default.pay" end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
3 4 5 |
# File 'lib/paytrace/configuration.rb', line 3 def connection @connection end |
#domain ⇒ Object
Returns the value of attribute domain.
3 4 5 |
# File 'lib/paytrace/configuration.rb', line 3 def domain @domain end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/paytrace/configuration.rb', line 3 def password @password end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/paytrace/configuration.rb', line 3 def path @path end |
#user_name ⇒ Object
Returns the value of attribute user_name.
3 4 5 |
# File 'lib/paytrace/configuration.rb', line 3 def user_name @user_name end |
Instance Method Details
#url ⇒ Object
11 12 13 |
# File 'lib/paytrace/configuration.rb', line 11 def url "https://#{@domain}/#{@path}" end |