Class: PutApisAPIIDVersionsVersionIDResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDVersionsVersionIDResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29335 29336 29337 29338 29339 29340 29341 29342 |
# File 'lib/schemas.rb', line 29335 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_apis_api_id_versions_version_id_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
29344 29345 29346 |
# File 'lib/schemas.rb', line 29344 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29348 29349 29350 29351 29352 29353 29354 |
# File 'lib/schemas.rb', line 29348 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_versions_version_id_response403_type, } end |
#to_json(options = nil) ⇒ Object
29356 29357 29358 |
# File 'lib/schemas.rb', line 29356 def to_json( = nil) JSON.generate(to_dynamic, ) end |