Class: Rafflesia::SecondaryStructureChain

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

Constant Summary collapse

HASH_ATTRS =
{
  auth_chain_id: :auth_chain_id,
  chain_id: :chain_id,
  dssp: :dssp,
  residue_count: :residue_count,
  sequence: :sequence,
  simple: :simple
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SecondaryStructureChain

Returns a new instance of SecondaryStructureChain.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @auth_chain_id = hash[:auth_chain_id]
  @chain_id = hash[:chain_id]
  @dssp = hash[:dssp]
  @residue_count = hash[:residue_count]
  @sequence = hash[:sequence]
  @simple = hash[:simple]
end

Instance Attribute Details

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def auth_chain_id
  @auth_chain_id
end

#chain_idObject

Returns the value of attribute chain_id.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def chain_id
  @chain_id
end

#dsspObject

Returns the value of attribute dssp.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def dssp
  @dssp
end

#residue_countObject

Returns the value of attribute residue_count.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def residue_count
  @residue_count
end

#sequenceObject

Returns the value of attribute sequence.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def sequence
  @sequence
end

#simpleObject

Returns the value of attribute simple.



17
18
19
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17

def simple
  @simple
end