Class: Rafflesia::QueryExportLifecycle

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_policyObject

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_atObject

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_codeObject

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_detailObject

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_staleObject

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_daysObject

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_msObject

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

#statusObject

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_detailObject

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_reasonObject

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_atObject

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