Class: Rafflesia::LocalDistanceDifferenceRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/local_distance_difference_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  cutoff_angstrom: :cutoff_angstrom,
  query_structure_id: :query_structure_id,
  target_structure_id: :target_structure_id,
  thresholds: :thresholds
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ LocalDistanceDifferenceRequest

Returns a new instance of LocalDistanceDifferenceRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/proteins/local_distance_difference_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cutoff_angstrom = hash[:cutoff_angstrom]
  @query_structure_id = hash[:query_structure_id]
  @target_structure_id = hash[:target_structure_id]
  @thresholds = (hash[:thresholds] || [])
end

Instance Attribute Details

#cutoff_angstromObject

Returns the value of attribute cutoff_angstrom.



15
16
17
# File 'lib/rafflesia/proteins/local_distance_difference_request.rb', line 15

def cutoff_angstrom
  @cutoff_angstrom
end

#query_structure_idObject

Returns the value of attribute query_structure_id.



15
16
17
# File 'lib/rafflesia/proteins/local_distance_difference_request.rb', line 15

def query_structure_id
  @query_structure_id
end

#target_structure_idObject

Returns the value of attribute target_structure_id.



15
16
17
# File 'lib/rafflesia/proteins/local_distance_difference_request.rb', line 15

def target_structure_id
  @target_structure_id
end

#thresholdsObject

Returns the value of attribute thresholds.



15
16
17
# File 'lib/rafflesia/proteins/local_distance_difference_request.rb', line 15

def thresholds
  @thresholds
end