Class: Rafflesia::AlphaFoldChainCompareRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AlphaFoldChainCompareRequest
- Defined in:
- lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, chain_id: :chain_id, method: :method, structure_id: :structure_id, uniprot_id: :uniprot_id }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#method ⇒ Object
Returns the value of attribute method.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#uniprot_id ⇒ Object
Returns the value of attribute uniprot_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ AlphaFoldChainCompareRequest
constructor
A new instance of AlphaFoldChainCompareRequest.
Constructor Details
#initialize(json) ⇒ AlphaFoldChainCompareRequest
Returns a new instance of AlphaFoldChainCompareRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @chain_id = hash[:chain_id] @method = hash[:method] @structure_id = hash[:structure_id] @uniprot_id = hash[:uniprot_id] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
16 17 18 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 16 def allow_network @allow_network end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
16 17 18 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 16 def chain_id @chain_id end |
#method ⇒ Object
Returns the value of attribute method.
16 17 18 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 16 def method @method end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
16 17 18 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 16 def structure_id @structure_id end |
#uniprot_id ⇒ Object
Returns the value of attribute uniprot_id.
16 17 18 |
# File 'lib/rafflesia/proteins/alpha_fold_chain_compare_request.rb', line 16 def uniprot_id @uniprot_id end |