Class: Rafflesia::PeptideBondOmegaRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/peptide_bond_omega_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  cis_cutoff: :cis_cutoff,
  include_all_bonds: :include_all_bonds,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PeptideBondOmegaRequest

Returns a new instance of PeptideBondOmegaRequest.



19
20
21
22
23
24
25
# File 'lib/rafflesia/proteins/peptide_bond_omega_request.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cis_cutoff = hash[:cis_cutoff]
  @include_all_bonds = hash[:include_all_bonds]
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#cis_cutoffObject

Returns the value of attribute cis_cutoff.



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

def cis_cutoff
  @cis_cutoff
end

#include_all_bondsObject

Returns the value of attribute include_all_bonds.



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

def include_all_bonds
  @include_all_bonds
end

#structure_idObject

Returns the value of attribute structure_id.



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

def structure_id
  @structure_id
end