Class: Rafflesia::AlphaFoldChainCompareRequest

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

Instance Method Summary collapse

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_networkObject

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_idObject

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

#methodObject

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_idObject

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_idObject

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