Class: Rafflesia::LocalDistanceDifferenceExportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::LocalDistanceDifferenceExportRequest
- Defined in:
- lib/rafflesia/proteins/local_distance_difference_export_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ cutoff_angstrom: :cutoff_angstrom, database: :database, max_comparisons: :max_comparisons, output_format: :output_format, output_relation: :output_relation, pairs: :pairs, pairs_path: :pairs_path, pairs_table_object_id: :pairs_table_object_id, pairs_table_path: :pairs_table_path, partition_by: :partition_by, preview_limit: :preview_limit, relation: :relation, release: :release, sort_by: :sort_by, thresholds: :thresholds }.freeze
Instance Attribute Summary collapse
-
#cutoff_angstrom ⇒ Object
Returns the value of attribute cutoff_angstrom.
-
#database ⇒ Object
Returns the value of attribute database.
-
#max_comparisons ⇒ Object
Returns the value of attribute max_comparisons.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#output_relation ⇒ Object
Returns the value of attribute output_relation.
-
#pairs ⇒ Object
Returns the value of attribute pairs.
-
#pairs_path ⇒ Object
Returns the value of attribute pairs_path.
-
#pairs_table_object_id ⇒ Object
Returns the value of attribute pairs_table_object_id.
-
#pairs_table_path ⇒ Object
Returns the value of attribute pairs_table_path.
-
#partition_by ⇒ Object
Returns the value of attribute partition_by.
-
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#release ⇒ Object
Returns the value of attribute release.
-
#sort_by ⇒ Object
Returns the value of attribute sort_by.
-
#thresholds ⇒ Object
Returns the value of attribute thresholds.
Instance Method Summary collapse
-
#initialize(json) ⇒ LocalDistanceDifferenceExportRequest
constructor
A new instance of LocalDistanceDifferenceExportRequest.
Constructor Details
#initialize(json) ⇒ LocalDistanceDifferenceExportRequest
Returns a new instance of LocalDistanceDifferenceExportRequest.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @cutoff_angstrom = hash[:cutoff_angstrom] @database = hash[:database] @max_comparisons = hash[:max_comparisons] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @pairs = (hash[:pairs] || []).map { |item| item ? Rafflesia::StructureComparisonPair.new(item) : nil } @pairs_path = hash[:pairs_path] @pairs_table_object_id = hash[:pairs_table_object_id] @pairs_table_path = hash[:pairs_table_path] @partition_by = (hash[:partition_by] || []) @preview_limit = hash[:preview_limit] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) @thresholds = (hash[:thresholds] || []) end |
Instance Attribute Details
#cutoff_angstrom ⇒ Object
Returns the value of attribute cutoff_angstrom.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def cutoff_angstrom @cutoff_angstrom end |
#database ⇒ Object
Returns the value of attribute database.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def database @database end |
#max_comparisons ⇒ Object
Returns the value of attribute max_comparisons.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def max_comparisons @max_comparisons end |
#output_format ⇒ Object
Returns the value of attribute output_format.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def output_relation @output_relation end |
#pairs ⇒ Object
Returns the value of attribute pairs.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def pairs @pairs end |
#pairs_path ⇒ Object
Returns the value of attribute pairs_path.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def pairs_path @pairs_path end |
#pairs_table_object_id ⇒ Object
Returns the value of attribute pairs_table_object_id.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def pairs_table_object_id @pairs_table_object_id end |
#pairs_table_path ⇒ Object
Returns the value of attribute pairs_table_path.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def pairs_table_path @pairs_table_path end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def partition_by @partition_by end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def preview_limit @preview_limit end |
#relation ⇒ Object
Returns the value of attribute relation.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def sort_by @sort_by end |
#thresholds ⇒ Object
Returns the value of attribute thresholds.
26 27 28 |
# File 'lib/rafflesia/proteins/local_distance_difference_export_request.rb', line 26 def thresholds @thresholds end |