Class: Rafflesia::FoundryVariantSubstitution

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

Constant Summary collapse

HASH_ATTRS =
{
  alternate: :alternate,
  id: :id,
  position: :position,
  reference: :reference
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoundryVariantSubstitution

Returns a new instance of FoundryVariantSubstitution.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 21

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

Instance Attribute Details

#alternateObject

Returns the value of attribute alternate.



15
16
17
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15

def alternate
  @alternate
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15

def id
  @id
end

#positionObject

Returns the value of attribute position.



15
16
17
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15

def position
  @position
end

#referenceObject

Returns the value of attribute reference.



15
16
17
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15

def reference
  @reference
end