Class: Retab::JsonHandleInput

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_test_run_results/json_handle_input.rb

Constant Summary collapse

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

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ JsonHandleInput

Returns a new instance of JsonHandleInput.



17
18
19
20
21
# File 'lib/retab/workflow_test_run_results/json_handle_input.rb', line 17

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

Instance Attribute Details

#dataObject

Returns the value of attribute data.



13
14
15
# File 'lib/retab/workflow_test_run_results/json_handle_input.rb', line 13

def data
  @data
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/retab/workflow_test_run_results/json_handle_input.rb', line 13

def type
  @type
end