class Credigy::Configuration

Attributes

env[RW]
verbose[RW]
wsdl[W]

Public Class Methods

new() click to toggle source
# File lib/credigy/config.rb, line 15
def initialize
  @verbose = false
  @env = :dev
end

Public Instance Methods

production_env?() click to toggle source
# File lib/credigy/config.rb, line 20
def production_env?
  env == :production
end
wsdl() click to toggle source
# File lib/credigy/config.rb, line 24
def wsdl
  return @wsdl if @wsdl

  if production_env?
    'https://www.credigy.com.br/CredigyWSP/CredigyAgenciesWSS.asmx?WSDL'.freeze
  else
    'https://www.credigy.com.br/CredigyWST/CredigyAgenciesWSS.asmx?WSDL'.freeze
  end
end