Class: Nfe::Generated::Nfeio::ProcessingBatchDetailResponse

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/nfeio/processing_batch_detail_response.rb,
sig/nfe/generated/nfeio/processing_batch_detail_response.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessingBatchDetailResponse

Returns a new instance of ProcessingBatchDetailResponse.

Parameters:



21
# File 'sig/nfe/generated/nfeio/processing_batch_detail_response.rbs', line 21

def initialize: (?batch_processes: Array[BatchProcessResponse]?, ?created_at: String, ?created_by: String?, ?id: String, ?inputs: InputsResponse, ?metrics: ProcessingMetricsResponse, ?name: String?, ?resource_name: String?, ?stage: String?, ?status: String?, ?updated_at: String?) -> void

Instance Attribute Details

#batch_processesObject (readonly)

Returns the value of attribute batch_processes

Returns:

  • (Object)

    the current value of batch_processes



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def batch_processes
  @batch_processes
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def created_at
  @created_at
end

#created_byObject (readonly)

Returns the value of attribute created_by

Returns:

  • (Object)

    the current value of created_by



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def created_by
  @created_by
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def id
  @id
end

#inputsObject (readonly)

Returns the value of attribute inputs

Returns:

  • (Object)

    the current value of inputs



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def inputs
  @inputs
end

#metricsObject (readonly)

Returns the value of attribute metrics

Returns:

  • (Object)

    the current value of metrics



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def metrics
  @metrics
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def name
  @name
end

#resource_nameObject (readonly)

Returns the value of attribute resource_name

Returns:

  • (Object)

    the current value of resource_name



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def resource_name
  @resource_name
end

#stageObject (readonly)

Returns the value of attribute stage

Returns:

  • (Object)

    the current value of stage



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def stage
  @stage
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def status
  @status
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



9
10
11
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 9

def updated_at
  @updated_at
end

Class Method Details

.from_api(payload) ⇒ instance?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/nfe/generated/nfeio/processing_batch_detail_response.rb', line 10

def self.from_api(payload)
  return nil if payload.nil?

  new(
    batch_processes: (payload["batchProcesses"] || []).map { |e| BatchProcessResponse.from_api(e) },
    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"],
    resource_name: payload["resourceName"],
    stage: payload["stage"],
    status: payload["status"],
    updated_at: payload["updatedAt"],
  )
end

.newinstance

Parameters:

Returns:

  • (instance)


20
# File 'sig/nfe/generated/nfeio/processing_batch_detail_response.rbs', line 20

def self.new: (?batch_processes: Array[BatchProcessResponse]?, ?created_at: String, ?created_by: String?, ?id: String, ?inputs: InputsResponse, ?metrics: ProcessingMetricsResponse, ?name: String?, ?resource_name: String?, ?stage: String?, ?status: String?, ?updated_at: String?) -> instance