Class: GetTagsSlugEntitiesResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetTagsSlugEntitiesResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16403 16404 16405 16406 16407 16408 16409 16410 |
# File 'lib/schemas.rb', line 16403 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], status_code: d["statusCode"], ) end |
.from_json!(json) ⇒ Object
16412 16413 16414 |
# File 'lib/schemas.rb', line 16412 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16416 16417 16418 16419 16420 16421 16422 |
# File 'lib/schemas.rb', line 16416 def to_dynamic { "error" => error, "message" => , "statusCode" => status_code, } end |
#to_json(options = nil) ⇒ Object
16424 16425 16426 |
# File 'lib/schemas.rb', line 16424 def to_json( = nil) JSON.generate(to_dynamic, ) end |