Class: Apiddress::BatchAcceptedResponse
- Inherits:
-
Data
- Object
- Data
- Apiddress::BatchAcceptedResponse
- Defined in:
- lib/apiddress/models.rb
Overview
Returned when an asynchronous batch job is accepted (HTTP 202).
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
readonly
Returns the value of attribute batch_id.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#submitted_count ⇒ Object
readonly
Returns the value of attribute submitted_count.
Class Method Summary collapse
Instance Attribute Details
#batch_id ⇒ Object (readonly)
Returns the value of attribute batch_id
85 86 87 |
# File 'lib/apiddress/models.rb', line 85 def batch_id @batch_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
85 86 87 |
# File 'lib/apiddress/models.rb', line 85 def created_at @created_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status
85 86 87 |
# File 'lib/apiddress/models.rb', line 85 def status @status end |
#submitted_count ⇒ Object (readonly)
Returns the value of attribute submitted_count
85 86 87 |
# File 'lib/apiddress/models.rb', line 85 def submitted_count @submitted_count end |
Class Method Details
.from_hash(data) ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'lib/apiddress/models.rb', line 92 def self.from_hash(data) new( batch_id: data["batch_id"], status: data["status"], submitted_count: data["submitted_count"].to_i, created_at: data["created_at"], ) end |