Class: Billimatic::Configuration
- Inherits:
-
Object
- Object
- Billimatic::Configuration
- Defined in:
- lib/billimatic/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #url ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/billimatic/configuration.rb', line 7 def initialize @host = "https://app.billimatic.com.br" @user_agent = "Billimatic Ruby Client v#{Billimatic::VERSION}" end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/billimatic/configuration.rb', line 5 def host @host end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/billimatic/configuration.rb', line 5 def user_agent @user_agent end |
Instance Method Details
#url ⇒ Object
12 13 14 |
# File 'lib/billimatic/configuration.rb', line 12 def url "#{self.host}/api/v1" end |