Class: Rafflesia::StructureAxisProfileAxisSource
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureAxisProfileAxisSource
- Defined in:
- lib/rafflesia/proteins/structure_axis_profile_axis_source.rb
Constant Summary collapse
- HASH_ATTRS =
{ axis_rank: :axis_rank, dataset_name: :dataset_name, dataset_version: :dataset_version, direction_canonicalization: :direction_canonicalization, is_direction_flipped: :is_direction_flipped, kind: :kind, object_ref: :object_ref, principal_axis_id: :principal_axis_id, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#axis_rank ⇒ Object
Returns the value of attribute axis_rank.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#direction_canonicalization ⇒ Object
Returns the value of attribute direction_canonicalization.
-
#is_direction_flipped ⇒ Object
Returns the value of attribute is_direction_flipped.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#object_ref ⇒ Object
Returns the value of attribute object_ref.
-
#principal_axis_id ⇒ Object
Returns the value of attribute principal_axis_id.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureAxisProfileAxisSource
constructor
A new instance of StructureAxisProfileAxisSource.
Constructor Details
#initialize(json) ⇒ StructureAxisProfileAxisSource
Returns a new instance of StructureAxisProfileAxisSource.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @axis_rank = hash[:axis_rank] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @direction_canonicalization = hash[:direction_canonicalization] @is_direction_flipped = hash[:is_direction_flipped] @kind = hash[:kind] @object_ref = hash[:object_ref] @principal_axis_id = hash[:principal_axis_id] @structure_id = hash[:structure_id] end |
Instance Attribute Details
#axis_rank ⇒ Object
Returns the value of attribute axis_rank.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def axis_rank @axis_rank end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def dataset_version @dataset_version end |
#direction_canonicalization ⇒ Object
Returns the value of attribute direction_canonicalization.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def direction_canonicalization @direction_canonicalization end |
#is_direction_flipped ⇒ Object
Returns the value of attribute is_direction_flipped.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def is_direction_flipped @is_direction_flipped end |
#kind ⇒ Object
Returns the value of attribute kind.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def kind @kind end |
#object_ref ⇒ Object
Returns the value of attribute object_ref.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def object_ref @object_ref end |
#principal_axis_id ⇒ Object
Returns the value of attribute principal_axis_id.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def principal_axis_id @principal_axis_id end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
20 21 22 |
# File 'lib/rafflesia/proteins/structure_axis_profile_axis_source.rb', line 20 def structure_id @structure_id end |