Class: Rafflesia::StructurePrepareRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructurePrepareRequest
- Defined in:
- lib/rafflesia/proteins/structure_prepare_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ encoding: :encoding, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructurePrepareRequest
constructor
A new instance of StructurePrepareRequest.
Constructor Details
#initialize(json) ⇒ StructurePrepareRequest
Returns a new instance of StructurePrepareRequest.
17 18 19 20 21 22 |
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @encoding = hash[:encoding] @structure_id = hash[:structure_id] end |
Instance Attribute Details
#encoding ⇒ Object
Returns the value of attribute encoding.
13 14 15 |
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 13 def encoding @encoding end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
13 14 15 |
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 13 def structure_id @structure_id end |