Class: NfeReader::Export

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/nfe_reader/export.rb

Overview

Informações de Comércio Exterior

Constant Summary

Constants included from AttributeHelper

AttributeHelper::WITHELIST

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes_to_hash

Constructor Details

#initialize(attrs = {}) ⇒ Export

Returns a new instance of Export.



9
10
11
12
# File 'lib/nfe_reader/export.rb', line 9

def initialize(attrs = {})
  @state = attrs[:UFEmbarq]
  @address = attrs[:xLocEmbarq]
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



7
8
9
# File 'lib/nfe_reader/export.rb', line 7

def address
  @address
end

#stateObject (readonly)

Returns the value of attribute state.



7
8
9
# File 'lib/nfe_reader/export.rb', line 7

def state
  @state
end