Class: Rafflesia::ResiduePointer
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ResiduePointer
- Defined in:
- lib/rafflesia/proteins/residue_pointer.rb
Constant Summary collapse
- HASH_ATTRS =
{ assembly_id: :assembly_id, auth_chain_id: :auth_chain_id, auth_position: :auth_position, chain_id: :chain_id, entity_id: :entity_id, insertion_code: :insertion_code, label_chain_id: :label_chain_id, label_position: :label_position, model_id: :model_id, position: :position, residue: :residue }.freeze
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#auth_position ⇒ Object
Returns the value of attribute auth_position.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
-
#label_chain_id ⇒ Object
Returns the value of attribute label_chain_id.
-
#label_position ⇒ Object
Returns the value of attribute label_position.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#position ⇒ Object
Returns the value of attribute position.
-
#residue ⇒ Object
Returns the value of attribute residue.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResiduePointer
constructor
A new instance of ResiduePointer.
Constructor Details
#initialize(json) ⇒ ResiduePointer
Returns a new instance of ResiduePointer.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @assembly_id = hash[:assembly_id] @auth_chain_id = hash[:auth_chain_id] @auth_position = hash[:auth_position] @chain_id = hash[:chain_id] @entity_id = hash[:entity_id] @insertion_code = hash[:insertion_code] @label_chain_id = hash[:label_chain_id] @label_position = hash[:label_position] @model_id = hash[:model_id] @position = hash[:position] @residue = hash[:residue] end |
Instance Attribute Details
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def assembly_id @assembly_id end |
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def auth_chain_id @auth_chain_id end |
#auth_position ⇒ Object
Returns the value of attribute auth_position.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def auth_position @auth_position end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def chain_id @chain_id end |
#entity_id ⇒ Object
Returns the value of attribute entity_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def entity_id @entity_id end |
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def insertion_code @insertion_code end |
#label_chain_id ⇒ Object
Returns the value of attribute label_chain_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def label_chain_id @label_chain_id end |
#label_position ⇒ Object
Returns the value of attribute label_position.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def label_position @label_position end |
#model_id ⇒ Object
Returns the value of attribute model_id.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def model_id @model_id end |
#position ⇒ Object
Returns the value of attribute position.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def position @position end |
#residue ⇒ Object
Returns the value of attribute residue.
22 23 24 |
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22 def residue @residue end |