Class: NfeReader::Armament
- Inherits:
-
Object
- Object
- NfeReader::Armament
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/product/armament.rb
Constant Summary
Constants included from AttributeHelper
NfeReader::AttributeHelper::WITHELIST
Instance Attribute Summary collapse
-
#barrel ⇒ Object
readonly
Returns the value of attribute barrel.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#serie ⇒ Object
readonly
Returns the value of attribute serie.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Armament
constructor
Fields Values.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Armament
Fields Values
tpArma : 0 - Uso permitido;
1 - Uso restrito;
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/nfe_reader/product/armament.rb', line 13 def initialize(attrs = {}) # Tipo de Arma @kind = attrs[:tpArma] # Serie @serie = attrs[:nSerie] # Cano = attrs[:nCano] # Descricao @description = attrs[:descr] end |
Instance Attribute Details
#barrel ⇒ Object (readonly)
Returns the value of attribute barrel.
6 7 8 |
# File 'lib/nfe_reader/product/armament.rb', line 6 def end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/nfe_reader/product/armament.rb', line 6 def description @description end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
6 7 8 |
# File 'lib/nfe_reader/product/armament.rb', line 6 def kind @kind end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie.
6 7 8 |
# File 'lib/nfe_reader/product/armament.rb', line 6 def serie @serie end |