Class: Rafflesia::FoldSegmentQueryFeature

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

Instance Method Summary collapse

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_countObject

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_countObject

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

#formatObject

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_minhashObject

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_countObject

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_factorObject

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_idObject

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_countObject

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_keyObject

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