Class: Rafflesia::JobCreateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JobCreateRequest
- Defined in:
- lib/rafflesia/jobs/job_create_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ idempotency_key: :idempotency_key, input: :input, max_retries: :max_retries, operation: :operation, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#idempotency_key ⇒ Object
Returns the value of attribute idempotency_key.
-
#input ⇒ Object
Returns the value of attribute input.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ JobCreateRequest
constructor
A new instance of JobCreateRequest.
Constructor Details
#initialize(json) ⇒ JobCreateRequest
Returns a new instance of JobCreateRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @idempotency_key = hash[:idempotency_key] @input = hash[:input] || {} @max_retries = hash[:max_retries] @operation = hash[:operation] @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#idempotency_key ⇒ Object
Returns the value of attribute idempotency_key.
16 17 18 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 16 def idempotency_key @idempotency_key end |
#input ⇒ Object
Returns the value of attribute input.
16 17 18 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 16 def input @input end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
16 17 18 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 16 def max_retries @max_retries end |
#operation ⇒ Object
Returns the value of attribute operation.
16 17 18 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 16 def operation @operation end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
16 17 18 |
# File 'lib/rafflesia/jobs/job_create_request.rb', line 16 def timeout_ms @timeout_ms end |