Class: CorreiosSigep::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#administrative_codeObject

Returns the value of attribute administrative_code.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def administrative_code
  @administrative_code
end

#cardObject

Returns the value of attribute card.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def card
  @card
end

#developmentObject

Returns the value of attribute development.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def development
  @development
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def password
  @password
end

#proxyObject

Returns the value of attribute proxy.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def proxy
  @proxy
end

#service_codeObject

Returns the value of attribute service_code.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def service_code
  @service_code
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def timeout
  @timeout
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def user
  @user
end

#wsdl_base_urlObject

Returns the value of attribute wsdl_base_url.



3
4
5
# File 'lib/correios_sigep/configuration.rb', line 3

def wsdl_base_url
  @wsdl_base_url
end

Instance Method Details

#administrative_fieldsObject



6
7
8
9
10
11
12
# File 'lib/correios_sigep/configuration.rb', line 6

def administrative_fields
  @administrative_fields ||=
    Models::AdministrativeFields.new(administrative_code: administrative_code,
                                     card: card,
                                     service_code: service_code)

end

#development?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/correios_sigep/configuration.rb', line 14

def development?
  @development
end