Class: Sigiss::Provider
- Inherits:
-
Object
- Object
- Sigiss::Provider
- Includes:
- ActiveModel::Validations, Extension
- Defined in:
- lib/sigiss/provider.rb
Instance Attribute Summary collapse
-
#ccm ⇒ Object
Returns the value of attribute ccm.
-
#cnpj ⇒ Object
Returns the value of attribute cnpj.
-
#crc ⇒ Object
Returns the value of attribute crc.
-
#crc_estado ⇒ Object
Returns the value of attribute crc_estado.
-
#senha ⇒ Object
Returns the value of attribute senha.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Provider
constructor
A new instance of Provider.
- #to_cancel ⇒ Object
- #to_fetch ⇒ Object
Methods included from Extension
Constructor Details
#initialize(attributes = {}) ⇒ Provider
Returns a new instance of Provider.
11 12 13 14 15 16 17 |
# File 'lib/sigiss/provider.rb', line 11 def initialize(attributes = {}) @ccm = attributes[:ccm] @cnpj = attributes[:cnpj] @senha = attributes[:senha] @crc = attributes[:crc] @crc_estado = attributes[:crc_estado] end |
Instance Attribute Details
#ccm ⇒ Object
Returns the value of attribute ccm.
7 8 9 |
# File 'lib/sigiss/provider.rb', line 7 def ccm @ccm end |
#cnpj ⇒ Object
Returns the value of attribute cnpj.
7 8 9 |
# File 'lib/sigiss/provider.rb', line 7 def cnpj @cnpj end |
#crc ⇒ Object
Returns the value of attribute crc.
7 8 9 |
# File 'lib/sigiss/provider.rb', line 7 def crc @crc end |
#crc_estado ⇒ Object
Returns the value of attribute crc_estado.
7 8 9 |
# File 'lib/sigiss/provider.rb', line 7 def crc_estado @crc_estado end |
#senha ⇒ Object
Returns the value of attribute senha.
7 8 9 |
# File 'lib/sigiss/provider.rb', line 7 def senha @senha end |
Instance Method Details
#to_cancel ⇒ Object
23 24 25 |
# File 'lib/sigiss/provider.rb', line 23 def to_cancel { cnpj: @cnpj, ccm: @ccm, senha: @senha } end |
#to_fetch ⇒ Object
19 20 21 |
# File 'lib/sigiss/provider.rb', line 19 def to_fetch { prestador_cnpj: @cnpj, prestador_ccm: @ccm } end |