Class: WorkOS::ErrorBodyWithCodeInstancePathError

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/error_body_with_code_instance_path_error.rb

Constant Summary collapse

HASH_ATTRS =
{
  instancePath: :instance_path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ErrorBodyWithCodeInstancePathError

Returns a new instance of ErrorBodyWithCodeInstancePathError.



13
14
15
16
# File 'lib/workos/shared/error_body_with_code_instance_path_error.rb', line 13

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

Instance Attribute Details

#instance_path ⇒ Object

Returns the value of attribute instance_path.



11
12
13
# File 'lib/workos/shared/error_body_with_code_instance_path_error.rb', line 11

def instance_path
  @instance_path
end