Class: Nfe::Generated::Nfeio::ProcessingBatchesResponse
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::Nfeio::ProcessingBatchesResponse
- Defined in:
- lib/nfe/generated/nfeio/processing_batches_response.rb,
sig/nfe/generated/nfeio/processing_batches_response.rbs
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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 ⇒ ProcessingBatchesResponse
constructor
A new instance of ProcessingBatchesResponse.
Constructor Details
#initialize ⇒ ProcessingBatchesResponse
Returns a new instance of ProcessingBatchesResponse.
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_at ⇒ Object (readonly)
Returns the value of attribute created_at
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batches_response.rb', line 9 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batches_response.rb', line 9 def id @id end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/nfe/generated/nfeio/processing_batches_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_batches_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 |
# 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 |
.new ⇒ 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
|