Class: Rafflesia::FoundryVariantSubstitution
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoundryVariantSubstitution
- 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
-
#alternate ⇒ Object
Returns the value of attribute alternate.
-
#id ⇒ Object
Returns the value of attribute id.
-
#position ⇒ Object
Returns the value of attribute position.
-
#reference ⇒ Object
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoundryVariantSubstitution
constructor
A new instance of FoundryVariantSubstitution.
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
#alternate ⇒ Object
Returns the value of attribute alternate.
15 16 17 |
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15 def alternate @alternate end |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15 def id @id end |
#position ⇒ Object
Returns the value of attribute position.
15 16 17 |
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15 def position @position end |
#reference ⇒ Object
Returns the value of attribute reference.
15 16 17 |
# File 'lib/rafflesia/foundry/foundry_variant_substitution.rb', line 15 def reference @reference end |