Class: Rafflesia::CombinedSearchStructureResidue
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CombinedSearchStructureResidue
- Defined in:
- lib/rafflesia/search/combined_search_structure_residue.rb
Constant Summary collapse
- HASH_ATTRS =
{ aa: :aa, ca: :ca, index: :index }.freeze
Instance Attribute Summary collapse
-
#aa ⇒ Object
Returns the value of attribute aa.
-
#ca ⇒ Object
Returns the value of attribute ca.
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(json) ⇒ CombinedSearchStructureResidue
constructor
A new instance of CombinedSearchStructureResidue.
Constructor Details
#initialize(json) ⇒ CombinedSearchStructureResidue
Returns a new instance of CombinedSearchStructureResidue.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @aa = hash[:aa] @ca = (hash[:ca] || []) @index = hash[:index] end |
Instance Attribute Details
#aa ⇒ Object
Returns the value of attribute aa.
14 15 16 |
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14 def aa @aa end |
#ca ⇒ Object
Returns the value of attribute ca.
14 15 16 |
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14 def ca @ca end |
#index ⇒ Object
Returns the value of attribute index.
14 15 16 |
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14 def index @index end |