Class: Rafflesia::StructureAlignData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureAlignData
- Defined in:
- lib/rafflesia/proteins/structure_align_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ alignment: :alignment, alignment_object_id: :alignment_object_id, backend: :backend, command: :command, executed: :executed, query_id: :query_id, target_id: :target_id }.freeze
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#command ⇒ Object
Returns the value of attribute command.
-
#executed ⇒ Object
Returns the value of attribute executed.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureAlignData
constructor
A new instance of StructureAlignData.
Constructor Details
#initialize(json) ⇒ StructureAlignData
Returns a new instance of StructureAlignData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @alignment = hash[:alignment] ? Rafflesia::StructureAlignment.new(hash[:alignment]) : nil @alignment_object_id = hash[:alignment_object_id] @backend = hash[:backend] @command = (hash[:command] || []) @executed = hash[:executed] @query_id = hash[:query_id] @target_id = hash[:target_id] end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def alignment @alignment end |
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def alignment_object_id @alignment_object_id end |
#backend ⇒ Object
Returns the value of attribute backend.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def backend @backend end |
#command ⇒ Object
Returns the value of attribute command.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def command @command end |
#executed ⇒ Object
Returns the value of attribute executed.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def executed @executed end |
#query_id ⇒ Object
Returns the value of attribute query_id.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def query_id @query_id end |
#target_id ⇒ Object
Returns the value of attribute target_id.
18 19 20 |
# File 'lib/rafflesia/proteins/structure_align_data.rb', line 18 def target_id @target_id end |