Class: Rafflesia::LocalDistanceDifferenceExportRequest

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

Instance Method Summary collapse

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_angstromObject

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

#databaseObject

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_comparisonsObject

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_formatObject

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_relationObject

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

#pairsObject

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_pathObject

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_idObject

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_pathObject

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_byObject

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_limitObject

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

#relationObject

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

#releaseObject

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_byObject

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

#thresholdsObject

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