Class: Rafflesia::ResiduePointer

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

Instance Method Summary collapse

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_idObject

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_idObject

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_positionObject

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_idObject

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_idObject

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_codeObject

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_idObject

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_positionObject

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_idObject

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

#positionObject

Returns the value of attribute position.



22
23
24
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22

def position
  @position
end

#residueObject

Returns the value of attribute residue.



22
23
24
# File 'lib/rafflesia/proteins/residue_pointer.rb', line 22

def residue
  @residue
end