Class: Nfe::Generated::Nfeio::BatchProcessResponse
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::Nfeio::BatchProcessResponse
- Defined in:
- lib/nfe/generated/nfeio/batch_process_response.rb,
sig/nfe/generated/nfeio/batch_process_response.rbs
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#out_puts ⇒ Object
readonly
Returns the value of attribute out_puts.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_reason ⇒ Object
readonly
Returns the value of attribute status_reason.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BatchProcessResponse
constructor
A new instance of BatchProcessResponse.
Constructor Details
#initialize ⇒ BatchProcessResponse
Returns a new instance of BatchProcessResponse.
16 |
# File 'sig/nfe/generated/nfeio/batch_process_response.rbs', line 16
def initialize: (created_at: String, ?input: String?, ?out_puts: Array[OutPutResponse]?, ?status: String?, ?status_reason: String?, ?updated_at: String?) -> void
|
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def created_at @created_at end |
#input ⇒ Object (readonly)
Returns the value of attribute input
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def input @input end |
#out_puts ⇒ Object (readonly)
Returns the value of attribute out_puts
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def out_puts @out_puts end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def status @status end |
#status_reason ⇒ Object (readonly)
Returns the value of attribute status_reason
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def status_reason @status_reason end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
9 10 11 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 9 def updated_at @updated_at end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/nfeio/batch_process_response.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( created_at: payload["createdAt"], input: payload["input"], out_puts: (payload["outPuts"] || []).map { |e| OutPutResponse.from_api(e) }, status: payload["status"], status_reason: payload["statusReason"], updated_at: payload["updatedAt"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/nfeio/batch_process_response.rbs', line 15
def self.new: (created_at: String, ?input: String?, ?out_puts: Array[OutPutResponse]?, ?status: String?, ?status_reason: String?, ?updated_at: String?) -> instance
|