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