Class: Rafflesia::MapModelFitCandidateApplyRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate: :candidate,
  map_id: :map_id,
  max_voxel_bytes: :max_voxel_bytes,
  structure_id: :structure_id,
  target_id: :target_id,
  threshold: :threshold
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitCandidateApplyRequest

Returns a new instance of MapModelFitCandidateApplyRequest.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate = hash[:candidate] ? Rafflesia::MapModelFitCandidate.new(hash[:candidate]) : nil
  @map_id = hash[:map_id]
  @max_voxel_bytes = hash[:max_voxel_bytes]
  @structure_id = hash[:structure_id]
  @target_id = hash[:target_id]
  @threshold = hash[:threshold]
end

Instance Attribute Details

#candidateObject

Returns the value of attribute candidate.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def candidate
  @candidate
end

#map_idObject

Returns the value of attribute map_id.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def map_id
  @map_id
end

#max_voxel_bytesObject

Returns the value of attribute max_voxel_bytes.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def max_voxel_bytes
  @max_voxel_bytes
end

#structure_idObject

Returns the value of attribute structure_id.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def structure_id
  @structure_id
end

#target_idObject

Returns the value of attribute target_id.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def target_id
  @target_id
end

#thresholdObject

Returns the value of attribute threshold.



17
18
19
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17

def threshold
  @threshold
end