Class: PutEnvironmentsEnvironmentIDResponse500Error

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



32356
32357
32358
32359
32360
32361
32362
# File 'lib/schemas.rb', line 32356

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    message:                                                d["message"],
    put_environments_environment_id_response500_error_name: d["name"],
  )
end

.from_json!(json) ⇒ Object



32364
32365
32366
# File 'lib/schemas.rb', line 32364

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



32368
32369
32370
32371
32372
32373
# File 'lib/schemas.rb', line 32368

def to_dynamic
  {
    "message" => message,
    "name"    => put_environments_environment_id_response500_error_name,
  }
end

#to_json(options = nil) ⇒ Object



32375
32376
32377
# File 'lib/schemas.rb', line 32375

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end