Class: Rafflesia::HelixAmphipathicityRecord

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

Constant Summary collapse

HASH_ATTRS =
{
  auth_chain_id: :auth_chain_id,
  chain_id: :chain_id,
  classification: :classification,
  end: :end,
  hydrophobic_moment: :hydrophobic_moment,
  length: :length,
  mean_hydrophobicity: :mean_hydrophobicity,
  moment_angle_degrees: :moment_angle_degrees,
  sequence: :sequence,
  start: :start
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HelixAmphipathicityRecord

Returns a new instance of HelixAmphipathicityRecord.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @auth_chain_id = hash[:auth_chain_id]
  @chain_id = hash[:chain_id]
  @classification = hash[:classification]
  @end = hash[:end] ? Rafflesia::ResiduePointer.new(hash[:end]) : nil
  @hydrophobic_moment = hash[:hydrophobic_moment]
  @length = hash[:length]
  @mean_hydrophobicity = hash[:mean_hydrophobicity]
  @moment_angle_degrees = hash[:moment_angle_degrees]
  @sequence = hash[:sequence]
  @start = hash[:start] ? Rafflesia::ResiduePointer.new(hash[:start]) : nil
end

Instance Attribute Details

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def auth_chain_id
  @auth_chain_id
end

#chain_idObject

Returns the value of attribute chain_id.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def chain_id
  @chain_id
end

#classificationObject

Returns the value of attribute classification.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def classification
  @classification
end

#endObject

Returns the value of attribute end.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def end
  @end
end

#hydrophobic_momentObject

Returns the value of attribute hydrophobic_moment.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def hydrophobic_moment
  @hydrophobic_moment
end

#lengthObject

Returns the value of attribute length.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def length
  @length
end

#mean_hydrophobicityObject

Returns the value of attribute mean_hydrophobicity.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def mean_hydrophobicity
  @mean_hydrophobicity
end

#moment_angle_degreesObject

Returns the value of attribute moment_angle_degrees.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def moment_angle_degrees
  @moment_angle_degrees
end

#sequenceObject

Returns the value of attribute sequence.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def sequence
  @sequence
end

#startObject

Returns the value of attribute start.



21
22
23
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21

def start
  @start
end