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