Class: Retab::WorkflowEvalRunSingleScope

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_eval_runs/workflow_eval_run_single_scope.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  eval_id: :eval_id
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ WorkflowEvalRunSingleScope

Returns a new instance of WorkflowEvalRunSingleScope.



18
19
20
21
22
23
# File 'lib/retab/workflow_eval_runs/workflow_eval_run_single_scope.rb', line 18

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @type = hash[:type]
  @eval_id = hash[:eval_id]
end

Instance Attribute Details

#eval_idObject

Returns the value of attribute eval_id.



13
14
15
# File 'lib/retab/workflow_eval_runs/workflow_eval_run_single_scope.rb', line 13

def eval_id
  @eval_id
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/retab/workflow_eval_runs/workflow_eval_run_single_scope.rb', line 13

def type
  @type
end