Class: Rafflesia::StructureAxisProfileRadiusPercentile
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureAxisProfileRadiusPercentile
- Defined in:
- lib/rafflesia/proteins/structure_axis_profile_radius_percentile.rb
Constant Summary collapse
- HASH_ATTRS =
{ percentile: :percentile, radius_angstrom: :radius_angstrom }.freeze
Instance Attribute Summary collapse
-
#percentile ⇒ Object
Returns the value of attribute percentile.
-
#radius_angstrom ⇒ Object
Returns the value of attribute radius_angstrom.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureAxisProfileRadiusPercentile
constructor
A new instance of StructureAxisProfileRadiusPercentile.
Constructor Details
#initialize(json) ⇒ StructureAxisProfileRadiusPercentile
Returns a new instance of StructureAxisProfileRadiusPercentile.
17 18 19 20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_radius_percentile.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @percentile = hash[:percentile] @radius_angstrom = hash[:radius_angstrom] end |
Instance Attribute Details
#percentile ⇒ Object
Returns the value of attribute percentile.
13 14 15 |
# File 'lib/rafflesia/proteins/structure_axis_profile_radius_percentile.rb', line 13 def percentile @percentile end |
#radius_angstrom ⇒ Object
Returns the value of attribute radius_angstrom.
13 14 15 |
# File 'lib/rafflesia/proteins/structure_axis_profile_radius_percentile.rb', line 13 def radius_angstrom @radius_angstrom end |