Class: Rafflesia::FoundryVariantEffect

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/foundry_variant_effect.rb

Constant Summary collapse

HASH_ATTRS =
{
  alternate: :alternate,
  id: :id,
  index: :index,
  log_likelihood_ratio: :log_likelihood_ratio,
  model_log_likelihood_ratios: :model_log_likelihood_ratios,
  object: :object,
  position: :position,
  reference: :reference
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoundryVariantEffect

Returns a new instance of FoundryVariantEffect.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @alternate = hash[:alternate]
  @id = hash[:id]
  @index = hash[:index]
  @log_likelihood_ratio = hash[:log_likelihood_ratio]
  @model_log_likelihood_ratios = (hash[:model_log_likelihood_ratios] || [])
  @object = hash[:object]
  @position = hash[:position]
  @reference = hash[:reference]
end

Instance Attribute Details

#alternateObject

Returns the value of attribute alternate.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def alternate
  @alternate
end

#idObject

Returns the value of attribute id.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def id
  @id
end

#indexObject

Returns the value of attribute index.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def index
  @index
end

#log_likelihood_ratioObject

Returns the value of attribute log_likelihood_ratio.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def log_likelihood_ratio
  @log_likelihood_ratio
end

#model_log_likelihood_ratiosObject

Returns the value of attribute model_log_likelihood_ratios.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def model_log_likelihood_ratios
  @model_log_likelihood_ratios
end

#objectObject

Returns the value of attribute object.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def object
  @object
end

#positionObject

Returns the value of attribute position.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def position
  @position
end

#referenceObject

Returns the value of attribute reference.



19
20
21
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19

def reference
  @reference
end