Class: Rafflesia::RotamerSummaryData

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

Constant Summary collapse

HASH_ATTRS =
{
  by_residue_type: :by_residue_type,
  g_minus: :g_minus,
  g_plus: :g_plus,
  residue_count: :residue_count,
  staggered_count: :staggered_count,
  staggered_fraction: :staggered_fraction,
  trans: :trans
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RotamerSummaryData

Returns a new instance of RotamerSummaryData.



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 27

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @by_residue_type = hash[:by_residue_type] || {}
  @g_minus = hash[:g_minus]
  @g_plus = hash[:g_plus]
  @residue_count = hash[:residue_count]
  @staggered_count = hash[:staggered_count]
  @staggered_fraction = hash[:staggered_fraction]
  @trans = hash[:trans]
end

Instance Attribute Details

#by_residue_typeObject

Returns the value of attribute by_residue_type.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def by_residue_type
  @by_residue_type
end

#g_minusObject

Returns the value of attribute g_minus.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def g_minus
  @g_minus
end

#g_plusObject

Returns the value of attribute g_plus.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def g_plus
  @g_plus
end

#residue_countObject

Returns the value of attribute residue_count.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def residue_count
  @residue_count
end

#staggered_countObject

Returns the value of attribute staggered_count.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def staggered_count
  @staggered_count
end

#staggered_fractionObject

Returns the value of attribute staggered_fraction.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def staggered_fraction
  @staggered_fraction
end

#transObject

Returns the value of attribute trans.



18
19
20
# File 'lib/rafflesia/proteins/rotamer_summary_data.rb', line 18

def trans
  @trans
end