Class: Rafflesia::SequenceSeedIndexObjectReadBudget

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb

Constant Summary collapse

HASH_ATTRS =
{
  is_configured: :is_configured,
  is_within_budget: :is_within_budget,
  materialized_database_bytes: :materialized_database_bytes,
  max_object_bytes: :max_object_bytes,
  max_object_reads: :max_object_reads,
  planned_object_bytes: :planned_object_bytes,
  planned_object_read_count: :planned_object_read_count,
  reasons: :reasons,
  require_zero_materialization: :require_zero_materialization
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexObjectReadBudget

Returns a new instance of SequenceSeedIndexObjectReadBudget.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @is_configured = hash[:is_configured]
  @is_within_budget = hash[:is_within_budget]
  @materialized_database_bytes = hash[:materialized_database_bytes]
  @max_object_bytes = hash[:max_object_bytes]
  @max_object_reads = hash[:max_object_reads]
  @planned_object_bytes = hash[:planned_object_bytes]
  @planned_object_read_count = hash[:planned_object_read_count]
  @reasons = (hash[:reasons] || [])
  @require_zero_materialization = hash[:require_zero_materialization]
end

Instance Attribute Details

#is_configuredObject

Returns the value of attribute is_configured.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def is_configured
  @is_configured
end

#is_within_budgetObject

Returns the value of attribute is_within_budget.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def is_within_budget
  @is_within_budget
end

#materialized_database_bytesObject

Returns the value of attribute materialized_database_bytes.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def materialized_database_bytes
  @materialized_database_bytes
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def max_object_reads
  @max_object_reads
end

#planned_object_bytesObject

Returns the value of attribute planned_object_bytes.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def planned_object_bytes
  @planned_object_bytes
end

#planned_object_read_countObject

Returns the value of attribute planned_object_read_count.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def planned_object_read_count
  @planned_object_read_count
end

#reasonsObject

Returns the value of attribute reasons.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def reasons
  @reasons
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



20
21
22
# File 'lib/rafflesia/datasets/sequence_seed_index_object_read_budget.rb', line 20

def require_zero_materialization
  @require_zero_materialization
end