Class: Nfe::Armament
- Inherits:
-
Object
- Object
- Nfe::Armament
- Defined in:
- lib/nfe_reader/product/armament.rb
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.
Constructor Details
#initialize(attrs = {}) ⇒ Armament
Fields Values
tpArma : 0 - Uso permitido;
1 - Uso restrito;
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe_reader/product/armament.rb', line 11 def initialize(attrs = {}) # Tipo de Arma @kind = attrs[:tpArma] # Serie @serie = attrs[:nSerie] # Cano @barrel = attrs[:nCano] # Descricao @description = attrs[:descr] end |
Instance Attribute Details
#barrel ⇒ Object (readonly)
Returns the value of attribute barrel.
4 5 6 |
# File 'lib/nfe_reader/product/armament.rb', line 4 def @barrel end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/nfe_reader/product/armament.rb', line 4 def description @description end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
4 5 6 |
# File 'lib/nfe_reader/product/armament.rb', line 4 def kind @kind end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie.
4 5 6 |
# File 'lib/nfe_reader/product/armament.rb', line 4 def serie @serie end |