Class: Nfe::Generated::Nfeio::ProcessingBatchSummaryResponse
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::Nfeio::ProcessingBatchSummaryResponse
- Defined in:
- lib/nfe/generated/nfeio/processing_batch_summary_response.rb,
sig/nfe/generated/nfeio/processing_batch_summary_response.rbs
Instance Attribute Summary collapse
-
#auto_generated ⇒ Object
readonly
Returns the value of attribute auto_generated.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#created_by ⇒ Object
readonly
Returns the value of attribute created_by.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#out_puts ⇒ Object
readonly
Returns the value of attribute out_puts.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
#resource_name ⇒ Object
readonly
Returns the value of attribute resource_name.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ProcessingBatchSummaryResponse
constructor
A new instance of ProcessingBatchSummaryResponse.
Constructor Details
#initialize ⇒ ProcessingBatchSummaryResponse
Returns a new instance of ProcessingBatchSummaryResponse.
23 |
# File 'sig/nfe/generated/nfeio/processing_batch_summary_response.rbs', line 23
def initialize: (?auto_generated: bool, ?created_at: String, ?created_by: String?, ?id: String, ?inputs: InputsResponse, ?metrics: ProcessingMetricsResponse, ?name: String?, ?out_puts: Array[OutPutResponse]?, ?parent_id: String?, ?resource_name: String?, ?stage: String?, ?status: String?, ?updated_at: String?) -> void
|
Instance Attribute Details
#auto_generated ⇒ Object (readonly)
Returns the value of attribute auto_generated
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def auto_generated @auto_generated end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def created_at @created_at end |
#created_by ⇒ Object (readonly)
Returns the value of attribute created_by
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def created_by @created_by end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def id @id end |
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def inputs @inputs end |
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def metrics @metrics end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def name @name end |
#out_puts ⇒ Object (readonly)
Returns the value of attribute out_puts
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def out_puts @out_puts end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def parent_id @parent_id end |
#resource_name ⇒ Object (readonly)
Returns the value of attribute resource_name
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def resource_name @resource_name end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def stage @stage end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 9 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_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 22 23 24 25 26 27 28 |
# File 'lib/nfe/generated/nfeio/processing_batch_summary_response.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( auto_generated: payload["autoGenerated"], created_at: payload["createdAt"], created_by: payload["createdBy"], id: payload["id"], inputs: InputsResponse.from_api(payload["inputs"]), metrics: ProcessingMetricsResponse.from_api(payload["metrics"]), name: payload["name"], out_puts: (payload["outPuts"] || []).map { |e| OutPutResponse.from_api(e) }, parent_id: payload["parentId"], resource_name: payload["resourceName"], stage: payload["stage"], status: payload["status"], updated_at: payload["updatedAt"], ) end |
.new ⇒ instance
22 |
# File 'sig/nfe/generated/nfeio/processing_batch_summary_response.rbs', line 22
def self.new: (?auto_generated: bool, ?created_at: String, ?created_by: String?, ?id: String, ?inputs: InputsResponse, ?metrics: ProcessingMetricsResponse, ?name: String?, ?out_puts: Array[OutPutResponse]?, ?parent_id: String?, ?resource_name: String?, ?stage: String?, ?status: String?, ?updated_at: String?) -> instance
|