Class: Nfe::Generated::Nfeio::ProcessingBatchesResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessingBatchesResponse

Returns a new instance of ProcessingBatchesResponse.

Parameters:

  • created_at: (String)
  • id: (String)
  • status: (String, nil)
  • updated_at: (String, nil)


14
# File 'sig/nfe/generated/nfeio/processing_batches_response.rbs', line 14

def initialize: (?created_at: String, ?id: String, ?status: String?, ?updated_at: String?) -> void

Instance Attribute Details

#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_batches_response.rb', line 9

def created_at
  @created_at
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_batches_response.rb', line 9

def id
  @id
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_batches_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_batches_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
# File 'lib/nfe/generated/nfeio/processing_batches_response.rb', line 10

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

  new(
    created_at: payload["createdAt"],
    id: payload["id"],
    status: payload["status"],
    updated_at: payload["updatedAt"],
  )
end

.newinstance

Parameters:

  • created_at: (String)
  • id: (String)
  • status: (String, nil)
  • updated_at: (String, nil)

Returns:

  • (instance)


13
# File 'sig/nfe/generated/nfeio/processing_batches_response.rbs', line 13

def self.new: (?created_at: String, ?id: String, ?status: String?, ?updated_at: String?) -> instance