Class: Rafflesia::FoundryVariantEffect
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoundryVariantEffect
- 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
-
#alternate ⇒ Object
Returns the value of attribute alternate.
-
#id ⇒ Object
Returns the value of attribute id.
-
#index ⇒ Object
Returns the value of attribute index.
-
#log_likelihood_ratio ⇒ Object
Returns the value of attribute log_likelihood_ratio.
-
#model_log_likelihood_ratios ⇒ Object
Returns the value of attribute model_log_likelihood_ratios.
-
#object ⇒ Object
Returns the value of attribute object.
-
#position ⇒ Object
Returns the value of attribute position.
-
#reference ⇒ Object
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoundryVariantEffect
constructor
A new instance of FoundryVariantEffect.
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
#alternate ⇒ Object
Returns the value of attribute alternate.
19 20 21 |
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19 def alternate @alternate end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19 def id @id end |
#index ⇒ Object
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_ratio ⇒ Object
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_ratios ⇒ Object
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 |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19 def object @object end |
#position ⇒ Object
Returns the value of attribute position.
19 20 21 |
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19 def position @position end |
#reference ⇒ Object
Returns the value of attribute reference.
19 20 21 |
# File 'lib/rafflesia/foundry/foundry_variant_effect.rb', line 19 def reference @reference end |