Class: Mirah::PushResult
- Inherits:
-
Object
- Object
- Mirah::PushResult
- Defined in:
- lib/mirah/push_result.rb
Overview
The result of a create or update operation.
Instance Attribute Summary collapse
-
#errors ⇒ Array<Error>
readonly
Any errors that occurred in processing.
-
#input ⇒ Input
readonly
The input parameters used.
-
#result ⇒ Data?
readonly
The result, where executed successfully.
-
#status ⇒ "CREATED", ...
readonly
The status of the request.
Instance Method Summary collapse
-
#initialize(status:, result:, errors:, input:) ⇒ PushResult
constructor
A new instance of PushResult.
Constructor Details
#initialize(status:, result:, errors:, input:) ⇒ PushResult
Returns a new instance of PushResult.
13 14 15 16 17 18 |
# File 'lib/mirah/push_result.rb', line 13 def initialize(status:, result:, errors:, input:) @result = result @status = status @errors = errors @input = input end |
Instance Attribute Details
#errors ⇒ Array<Error> (readonly)
Any errors that occurred in processing
34 35 36 |
# File 'lib/mirah/push_result.rb', line 34 def errors @errors end |
#input ⇒ Input (readonly)
The input parameters used
38 39 40 |
# File 'lib/mirah/push_result.rb', line 38 def input @input end |
#result ⇒ Data? (readonly)
The result, where executed successfully.
30 31 32 |
# File 'lib/mirah/push_result.rb', line 30 def result @result end |
#status ⇒ "CREATED", ... (readonly)
The status of the request. It can be one of:
* CREATED: A new resource was created
* UPDATED: An existing resource was updated
* SKIPPED: The record was understood but not processed.
* ERROR: An error occured.
26 27 28 |
# File 'lib/mirah/push_result.rb', line 26 def status @status end |