Class: Rafflesia::FoldCollectionRoutingDecision

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_collection_routing_decision.rb

Constant Summary collapse

HASH_ATTRS =
{
  block_bytes: :block_bytes,
  block_count: :block_count,
  geometry_overlap: :geometry_overlap,
  is_selected: :is_selected,
  length_similarity: :length_similarity,
  rank: :rank,
  reason: :reason,
  record_count: :record_count,
  ref: :ref,
  residue_count_distance: :residue_count_distance,
  score: :score,
  segment_id: :segment_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionRoutingDecision

Returns a new instance of FoldCollectionRoutingDecision.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @block_bytes = hash[:block_bytes]
  @block_count = hash[:block_count]
  @geometry_overlap = hash[:geometry_overlap]
  @is_selected = hash[:is_selected]
  @length_similarity = hash[:length_similarity]
  @rank = hash[:rank]
  @reason = hash[:reason]
  @record_count = hash[:record_count]
  @ref = hash[:ref]
  @residue_count_distance = hash[:residue_count_distance]
  @score = hash[:score]
  @segment_id = hash[:segment_id]
end

Instance Attribute Details

#block_bytesObject

Returns the value of attribute block_bytes.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def block_bytes
  @block_bytes
end

#block_countObject

Returns the value of attribute block_count.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def block_count
  @block_count
end

#geometry_overlapObject

Returns the value of attribute geometry_overlap.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def geometry_overlap
  @geometry_overlap
end

#is_selectedObject

Returns the value of attribute is_selected.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def is_selected
  @is_selected
end

#length_similarityObject

Returns the value of attribute length_similarity.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def length_similarity
  @length_similarity
end

#rankObject

Returns the value of attribute rank.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def rank
  @rank
end

#reasonObject

Returns the value of attribute reason.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def reason
  @reason
end

#record_countObject

Returns the value of attribute record_count.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def record_count
  @record_count
end

#refObject

Returns the value of attribute ref.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def ref
  @ref
end

#residue_count_distanceObject

Returns the value of attribute residue_count_distance.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def residue_count_distance
  @residue_count_distance
end

#scoreObject

Returns the value of attribute score.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def score
  @score
end

#segment_idObject

Returns the value of attribute segment_id.



23
24
25
# File 'lib/rafflesia/proteins/fold_collection_routing_decision.rb', line 23

def segment_id
  @segment_id
end