Class: Nfse::Base

Inherits:
Mustache
  • Object
show all
Defined in:
lib/nfse/base.rb

Direct Known Subclasses

ConsultaLote, EnviaLote

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_ibgeObject

Returns the value of attribute code_ibge.



5
6
7
# File 'lib/nfse/base.rb', line 5

def code_ibge
  @code_ibge
end

Instance Method Details

#get_wsdlObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/nfse/base.rb', line 7

def get_wsdl
    if Rails.env.production?
        {
            '3131703' => 'http://servicosweb.itabira.mg.gov.br:90/nfse.portal.integracao/services.svc?Wsdl',                
            '3106200' => 'https://bhissdigitalws.pbh.gov.br/bhiss-ws/nfse?wsdl'
        }
    else
        {
            '3106200' => 'https://bhisshomologa.pbh.gov.br/bhiss-ws/nfse?wsdl'
        }
    end
end