Class: Rafflesia::QueryAdmissionBlocker

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/query/query_admission_blocker.rb

Constant Summary collapse

HASH_ATTRS =
{
  cli_arguments: :cli_arguments,
  decision_reason: :decision_reason,
  key_variant: :key_variant,
  left_selector: :left_selector,
  left_source: :left_source,
  proof_digest: :proof_digest,
  relationship_id: :relationship_id,
  repair: :repair,
  repair_detail: :repair_detail,
  right_selector: :right_selector,
  right_source: :right_source,
  safety_basis: :safety_basis
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ QueryAdmissionBlocker

Returns a new instance of QueryAdmissionBlocker.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cli_arguments = (hash[:cli_arguments] || [])
  @decision_reason = hash[:decision_reason]
  @key_variant = hash[:key_variant]
  @left_selector = hash[:left_selector]
  @left_source = hash[:left_source]
  @proof_digest = hash[:proof_digest]
  @relationship_id = hash[:relationship_id]
  @repair = hash[:repair]
  @repair_detail = hash[:repair_detail]
  @right_selector = hash[:right_selector]
  @right_source = hash[:right_source]
  @safety_basis = hash[:safety_basis]
end

Instance Attribute Details

#cli_argumentsObject

Returns the value of attribute cli_arguments.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def cli_arguments
  @cli_arguments
end

#decision_reasonObject

Returns the value of attribute decision_reason.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def decision_reason
  @decision_reason
end

#key_variantObject

Returns the value of attribute key_variant.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def key_variant
  @key_variant
end

#left_selectorObject

Returns the value of attribute left_selector.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def left_selector
  @left_selector
end

#left_sourceObject

Returns the value of attribute left_source.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def left_source
  @left_source
end

#proof_digestObject

Returns the value of attribute proof_digest.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def proof_digest
  @proof_digest
end

#relationship_idObject

Returns the value of attribute relationship_id.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def relationship_id
  @relationship_id
end

#repairObject

Returns the value of attribute repair.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def repair
  @repair
end

#repair_detailObject

Returns the value of attribute repair_detail.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def repair_detail
  @repair_detail
end

#right_selectorObject

Returns the value of attribute right_selector.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def right_selector
  @right_selector
end

#right_sourceObject

Returns the value of attribute right_source.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def right_source
  @right_source
end

#safety_basisObject

Returns the value of attribute safety_basis.



23
24
25
# File 'lib/rafflesia/query/query_admission_blocker.rb', line 23

def safety_basis
  @safety_basis
end