Class: Rafflesia::CombinedSearchStructureResidue

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#aaObject

Returns the value of attribute aa.



14
15
16
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14

def aa
  @aa
end

#caObject

Returns the value of attribute ca.



14
15
16
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14

def ca
  @ca
end

#indexObject

Returns the value of attribute index.



14
15
16
# File 'lib/rafflesia/search/combined_search_structure_residue.rb', line 14

def index
  @index
end