Class: Rafflesia::StructureAxisProfileAxisSource

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

Instance Method Summary collapse

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_rankObject

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_nameObject

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_versionObject

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_canonicalizationObject

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_flippedObject

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

#kindObject

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_refObject

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_idObject

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_idObject

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