Class: Billimatic::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/billimatic/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/billimatic/configuration.rb', line 5

def host
  @host
end

#user_agentObject

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

#urlObject



12
13
14
# File 'lib/billimatic/configuration.rb', line 12

def url
  "#{self.host}/api/v1"
end