myfreecomm/passaporteweb-client-ruby

View on GitHub
lib/passaporte_web/configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
class PassaporteWeb::Configuration

  attr_accessor :url, :user_agent, :application_token, :application_secret

  def initialize
    @url = 'https://v2.passaporteweb.com.br'
    @user_agent = "PassaporteWeb Ruby Client v#{PassaporteWeb::VERSION}"
  end

  def url_for(path)
    %(#{url.chomp('/')}#{path})
  end
end