Class: Nfe::Services::Dispatch::DetEventoCC
- Inherits:
-
Object
- Object
- Nfe::Services::Dispatch::DetEventoCC
show all
- Includes:
- ActiveModel::Model, Helpers::XmlModel::NfeModel
- Defined in:
- lib/nfe/services/dispatch/detEventoCC.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#add_elements, #check_present, included, #parse!, #parse_elements, #present?, #validate_optional_attributes, #validate_required_attributes
Instance Attribute Details
#versao ⇒ Object
Returns the value of attribute versao.
12
13
14
|
# File 'lib/nfe/services/dispatch/detEventoCC.rb', line 12
def versao
@versao
end
|
Instance Method Details
#kind ⇒ Object
20
21
22
|
# File 'lib/nfe/services/dispatch/detEventoCC.rb', line 20
def kind
:cce
end
|
#to_xml ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/nfe/services/dispatch/detEventoCC.rb', line 28
def to_xml
xml = Builder::XmlMarkup.new
xml.detEvento(versao: versao) { |node| add_elements node }
xml.target!
end
|
#tpEvent ⇒ Object
24
25
26
|
# File 'lib/nfe/services/dispatch/detEventoCC.rb', line 24
def tpEvent
110110
end
|