class Facturapi::Config

Public Instance Methods

fact_password(password = nil) click to toggle source

Set and gets the default facturacion password

# File lib/facturapi/config.rb, line 18
def fact_password(password = nil)
  @password = password if password
  Base64.strict_encode64(@password || ENV['FACTURACION_PASSWORD'])
end
fact_port(port = nil) click to toggle source

Set and gets the default facturacion port

# File lib/facturapi/config.rb, line 24
def fact_port(port = nil)
  @port = port if port
  Base64.strict_encode64((@port || ENV['FACTURACION_PORT']).to_s)
end
fact_rut(rut = nil) click to toggle source

Set and gets the default facturacion rut

# File lib/facturapi/config.rb, line 12
def fact_rut(rut = nil)
  @rut = rut if rut
  Base64.strict_encode64(@rut || ENV['FACTURACION_RUT'])
end
fact_user(user = nil) click to toggle source

Set and gets the default facturacion user

# File lib/facturapi/config.rb, line 6
def fact_user(user = nil)
  @user = user if user
  Base64.strict_encode64(@user || ENV['FACTURACION_USER'])
end