Class: Rafflesia::StructurePredictionSubmitData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructurePredictionSubmitData
- 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
-
#job ⇒ Object
Returns the value of attribute job.
-
#request_sha_256 ⇒ Object
Returns the value of attribute request_sha_256.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructurePredictionSubmitData
constructor
A new instance of StructurePredictionSubmitData.
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
#job ⇒ Object
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_256 ⇒ Object
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 |