Class: Rafflesia::FoldSegmentQueryFeature
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSegmentQueryFeature
- Defined in:
- lib/rafflesia/proteins/fold_segment_query_feature.rb
Constant Summary collapse
- HASH_ATTRS =
{ atom_count: :atom_count, chain_count: :chain_count, format: :format, geometry_minhash: :geometry_minhash, geometry_token_count: :geometry_token_count, has_plddt_like_b_factor: :has_plddt_like_b_factor, query_id: :query_id, residue_count: :residue_count, sort_key: :sort_key }.freeze
Instance Attribute Summary collapse
-
#atom_count ⇒ Object
Returns the value of attribute atom_count.
-
#chain_count ⇒ Object
Returns the value of attribute chain_count.
-
#format ⇒ Object
Returns the value of attribute format.
-
#geometry_minhash ⇒ Object
Returns the value of attribute geometry_minhash.
-
#geometry_token_count ⇒ Object
Returns the value of attribute geometry_token_count.
-
#has_plddt_like_b_factor ⇒ Object
Returns the value of attribute has_plddt_like_b_factor.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#sort_key ⇒ Object
Returns the value of attribute sort_key.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSegmentQueryFeature
constructor
A new instance of FoldSegmentQueryFeature.
Constructor Details
#initialize(json) ⇒ FoldSegmentQueryFeature
Returns a new instance of FoldSegmentQueryFeature.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @atom_count = hash[:atom_count] @chain_count = hash[:chain_count] @format = hash[:format] @geometry_minhash = (hash[:geometry_minhash] || []) @geometry_token_count = hash[:geometry_token_count] @has_plddt_like_b_factor = hash[:has_plddt_like_b_factor] @query_id = hash[:query_id] @residue_count = hash[:residue_count] @sort_key = hash[:sort_key] end |
Instance Attribute Details
#atom_count ⇒ Object
Returns the value of attribute atom_count.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def atom_count @atom_count end |
#chain_count ⇒ Object
Returns the value of attribute chain_count.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def chain_count @chain_count end |
#format ⇒ Object
Returns the value of attribute format.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def format @format end |
#geometry_minhash ⇒ Object
Returns the value of attribute geometry_minhash.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def geometry_minhash @geometry_minhash end |
#geometry_token_count ⇒ Object
Returns the value of attribute geometry_token_count.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def geometry_token_count @geometry_token_count end |
#has_plddt_like_b_factor ⇒ Object
Returns the value of attribute has_plddt_like_b_factor.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def has_plddt_like_b_factor @has_plddt_like_b_factor end |
#query_id ⇒ Object
Returns the value of attribute query_id.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def query_id @query_id end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def residue_count @residue_count end |
#sort_key ⇒ Object
Returns the value of attribute sort_key.
20 21 22 |
# File 'lib/rafflesia/proteins/fold_segment_query_feature.rb', line 20 def sort_key @sort_key end |