Class: Rafflesia::StructureFetchRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_networkObject

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

#sourceObject

Returns the value of attribute source.



14
15
16
# File 'lib/rafflesia/proteins/structure_fetch_request.rb', line 14

def source
  @source
end

#target_idObject

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