Class: Rafflesia::CoevolutionRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/coevolution_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  alignment_object_id: :alignment_object_id,
  alignment_path: :alignment_path,
  max_gap_fraction: :max_gap_fraction,
  max_sequences: :max_sequences,
  method: :method,
  min_separation: :min_separation,
  pseudocount: :pseudocount,
  reference: :reference,
  reference_start: :reference_start,
  reweight_identity: :reweight_identity,
  top: :top
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CoevolutionRequest

Returns a new instance of CoevolutionRequest.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @alignment_object_id = hash[:alignment_object_id]
  @alignment_path = hash[:alignment_path]
  @max_gap_fraction = hash[:max_gap_fraction]
  @max_sequences = hash[:max_sequences]
  @method = hash[:method]
  @min_separation = hash[:min_separation]
  @pseudocount = hash[:pseudocount]
  @reference = hash[:reference]
  @reference_start = hash[:reference_start]
  @reweight_identity = hash[:reweight_identity]
  @top = hash[:top]
end

Instance Attribute Details

#alignment_object_idObject

Returns the value of attribute alignment_object_id.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def alignment_object_id
  @alignment_object_id
end

#alignment_pathObject

Returns the value of attribute alignment_path.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def alignment_path
  @alignment_path
end

#max_gap_fractionObject

Returns the value of attribute max_gap_fraction.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def max_gap_fraction
  @max_gap_fraction
end

#max_sequencesObject

Returns the value of attribute max_sequences.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def max_sequences
  @max_sequences
end

#methodObject

Returns the value of attribute method.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def method
  @method
end

#min_separationObject

Returns the value of attribute min_separation.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def min_separation
  @min_separation
end

#pseudocountObject

Returns the value of attribute pseudocount.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def pseudocount
  @pseudocount
end

#referenceObject

Returns the value of attribute reference.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def reference
  @reference
end

#reference_startObject

Returns the value of attribute reference_start.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def reference_start
  @reference_start
end

#reweight_identityObject

Returns the value of attribute reweight_identity.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def reweight_identity
  @reweight_identity
end

#topObject

Returns the value of attribute top.



22
23
24
# File 'lib/rafflesia/sequences/coevolution_request.rb', line 22

def top
  @top
end