Class: BrNfe::Product::Response::NfeStatusServico
- Inherits:
-
Base
- Object
- ActiveModelBase
- Base
- BrNfe::Product::Response::NfeStatusServico
- Defined in:
- lib/br_nfe/product/response/nfe_status_servico.rb
Instance Attribute Summary collapse
-
#average_time ⇒ Object
Returns the value of attribute average_time.
-
#observation ⇒ Object
Returns the value of attribute observation.
-
#return_prevision ⇒ Object
Returns the value of attribute return_prevision.
-
#uf ⇒ Object
Returns the value of attribute uf.
Attributes inherited from Base
#app_version, #environment, #processed_at, #processing_status_code, #processing_status_motive, #protocol, #request_message_error, #request_status, #soap_xml
Attributes inherited from ActiveModelBase
Instance Method Summary collapse
Methods inherited from Base
#processed_successfully?, #processing_status
Methods inherited from ActiveModelBase
#assign_attributes, #default_values, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Attribute Details
#average_time ⇒ Object
Returns the value of attribute average_time.
9 10 11 |
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 9 def average_time @average_time end |
#observation ⇒ Object
Returns the value of attribute observation.
12 13 14 |
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 12 def observation @observation end |
#return_prevision ⇒ Object
Returns the value of attribute return_prevision.
15 16 17 |
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 15 def return_prevision @return_prevision end |
#uf ⇒ Object
Returns the value of attribute uf.
6 7 8 |
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 6 def uf @uf end |
Instance Method Details
#status ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 21 def status if processing_status_code == '107' :online else :offline end end |