Class: Rafflesia::StructureRepeatedChainGroup
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureRepeatedChainGroup
- Defined in:
- lib/rafflesia/proteins/structure_repeated_chain_group.rb
Constant Summary collapse
- HASH_ATTRS =
{ chain_centroid_ring_measurement: :chain_centroid_ring_measurement, chain_count: :chain_count, chain_ids: :chain_ids, group_id: :group_id, sequence: :sequence, sequence_sha256: :sequence_sha_256 }.freeze
Instance Attribute Summary collapse
-
#chain_centroid_ring_measurement ⇒ Object
Returns the value of attribute chain_centroid_ring_measurement.
-
#chain_count ⇒ Object
Returns the value of attribute chain_count.
-
#chain_ids ⇒ Object
Returns the value of attribute chain_ids.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#sequence_sha_256 ⇒ Object
Returns the value of attribute sequence_sha_256.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureRepeatedChainGroup
constructor
A new instance of StructureRepeatedChainGroup.
Constructor Details
#initialize(json) ⇒ StructureRepeatedChainGroup
Returns a new instance of StructureRepeatedChainGroup.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @chain_centroid_ring_measurement = hash[:chain_centroid_ring_measurement] ? Rafflesia::StructureChainCentroidRingMeasurement.new(hash[:chain_centroid_ring_measurement]) : nil @chain_count = hash[:chain_count] @chain_ids = (hash[:chain_ids] || []) @group_id = hash[:group_id] @sequence = hash[:sequence] @sequence_sha_256 = hash[:sequence_sha256] end |
Instance Attribute Details
#chain_centroid_ring_measurement ⇒ Object
Returns the value of attribute chain_centroid_ring_measurement.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def chain_centroid_ring_measurement @chain_centroid_ring_measurement end |
#chain_count ⇒ Object
Returns the value of attribute chain_count.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def chain_count @chain_count end |
#chain_ids ⇒ Object
Returns the value of attribute chain_ids.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def chain_ids @chain_ids end |
#group_id ⇒ Object
Returns the value of attribute group_id.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def group_id @group_id end |
#sequence ⇒ Object
Returns the value of attribute sequence.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def sequence @sequence end |
#sequence_sha_256 ⇒ Object
Returns the value of attribute sequence_sha_256.
17 18 19 |
# File 'lib/rafflesia/proteins/structure_repeated_chain_group.rb', line 17 def sequence_sha_256 @sequence_sha_256 end |