Class: Rafflesia::HelixAmphipathicityRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HelixAmphipathicityRecord
- 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
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#end ⇒ Object
Returns the value of attribute end.
-
#hydrophobic_moment ⇒ Object
Returns the value of attribute hydrophobic_moment.
-
#length ⇒ Object
Returns the value of attribute length.
-
#mean_hydrophobicity ⇒ Object
Returns the value of attribute mean_hydrophobicity.
-
#moment_angle_degrees ⇒ Object
Returns the value of attribute moment_angle_degrees.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(json) ⇒ HelixAmphipathicityRecord
constructor
A new instance of HelixAmphipathicityRecord.
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_id ⇒ Object
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_id ⇒ Object
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 |
#classification ⇒ Object
Returns the value of attribute classification.
21 22 23 |
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21 def classification @classification end |
#end ⇒ Object
Returns the value of attribute end.
21 22 23 |
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21 def end @end end |
#hydrophobic_moment ⇒ Object
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 |
#length ⇒ Object
Returns the value of attribute length.
21 22 23 |
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21 def length @length end |
#mean_hydrophobicity ⇒ Object
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_degrees ⇒ Object
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 |
#sequence ⇒ Object
Returns the value of attribute sequence.
21 22 23 |
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21 def sequence @sequence end |
#start ⇒ Object
Returns the value of attribute start.
21 22 23 |
# File 'lib/rafflesia/proteins/helix_amphipathicity_record.rb', line 21 def start @start end |