Class: Rafflesia::QueryExportLifecycle
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryExportLifecycle
- Defined in:
- lib/rafflesia/query_exports/query_export_lifecycle.rb
Constant Summary collapse
- HASH_ATTRS =
{ deletion_policy: :deletion_policy, expires_at: :expires_at, failure_code: :failure_code, failure_detail: :failure_detail, is_worker_stale: :is_worker_stale, retention_days: :retention_days, stale_after_ms: :stale_after_ms, status: :status, unavailable_detail: :unavailable_detail, unavailable_reason: :unavailable_reason, worker_last_seen_at: :worker_last_seen_at }.freeze
Instance Attribute Summary collapse
-
#deletion_policy ⇒ Object
Returns the value of attribute deletion_policy.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#failure_code ⇒ Object
Returns the value of attribute failure_code.
-
#failure_detail ⇒ Object
Returns the value of attribute failure_detail.
-
#is_worker_stale ⇒ Object
Returns the value of attribute is_worker_stale.
-
#retention_days ⇒ Object
Returns the value of attribute retention_days.
-
#stale_after_ms ⇒ Object
Returns the value of attribute stale_after_ms.
-
#status ⇒ Object
Returns the value of attribute status.
-
#unavailable_detail ⇒ Object
Returns the value of attribute unavailable_detail.
-
#unavailable_reason ⇒ Object
Returns the value of attribute unavailable_reason.
-
#worker_last_seen_at ⇒ Object
Returns the value of attribute worker_last_seen_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryExportLifecycle
constructor
A new instance of QueryExportLifecycle.
Constructor Details
#initialize(json) ⇒ QueryExportLifecycle
Returns a new instance of QueryExportLifecycle.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @deletion_policy = hash[:deletion_policy] @expires_at = hash[:expires_at] @failure_code = hash[:failure_code] @failure_detail = hash[:failure_detail] @is_worker_stale = hash[:is_worker_stale] @retention_days = hash[:retention_days] @stale_after_ms = hash[:stale_after_ms] @status = hash[:status] @unavailable_detail = hash[:unavailable_detail] @unavailable_reason = hash[:unavailable_reason] @worker_last_seen_at = hash[:worker_last_seen_at] end |
Instance Attribute Details
#deletion_policy ⇒ Object
Returns the value of attribute deletion_policy.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def deletion_policy @deletion_policy end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def expires_at @expires_at end |
#failure_code ⇒ Object
Returns the value of attribute failure_code.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def failure_code @failure_code end |
#failure_detail ⇒ Object
Returns the value of attribute failure_detail.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def failure_detail @failure_detail end |
#is_worker_stale ⇒ Object
Returns the value of attribute is_worker_stale.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def is_worker_stale @is_worker_stale end |
#retention_days ⇒ Object
Returns the value of attribute retention_days.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def retention_days @retention_days end |
#stale_after_ms ⇒ Object
Returns the value of attribute stale_after_ms.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def stale_after_ms @stale_after_ms end |
#status ⇒ Object
Returns the value of attribute status.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def status @status end |
#unavailable_detail ⇒ Object
Returns the value of attribute unavailable_detail.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def unavailable_detail @unavailable_detail end |
#unavailable_reason ⇒ Object
Returns the value of attribute unavailable_reason.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def unavailable_reason @unavailable_reason end |
#worker_last_seen_at ⇒ Object
Returns the value of attribute worker_last_seen_at.
22 23 24 |
# File 'lib/rafflesia/query_exports/query_export_lifecycle.rb', line 22 def worker_last_seen_at @worker_last_seen_at end |