Class: Rafflesia::StructurePredictionSubmitData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/structure_prediction_submit_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  job: :job,
  request_sha256: :request_sha_256
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ StructurePredictionSubmitData

Returns a new instance of StructurePredictionSubmitData.



17
18
19
20
21
22
# File 'lib/rafflesia/foundry/structure_prediction_submit_data.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @job = hash[:job] ? Rafflesia::JobData.new(hash[:job]) : nil
  @request_sha_256 = hash[:request_sha256]
end

Instance Attribute Details

#jobObject

Returns the value of attribute job.



13
14
15
# File 'lib/rafflesia/foundry/structure_prediction_submit_data.rb', line 13

def job
  @job
end

#request_sha_256Object

Returns the value of attribute request_sha_256.



13
14
15
# File 'lib/rafflesia/foundry/structure_prediction_submit_data.rb', line 13

def request_sha_256
  @request_sha_256
end