Class: Rafflesia::StructureAxisProfileRadiusPercentile

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#percentileObject

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_angstromObject

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