Class: PutWorkspacesWorkspaceIDTagsResponseTagsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutWorkspacesWorkspaceIDTagsResponseTagsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35279 35280 35281 35282 35283 35284 |
# File 'lib/schemas.rb', line 35279 def self.from_dynamic!(d) d = Types::Hash[d] new( slug: d["slug"], ) end |
.from_json!(json) ⇒ Object
35286 35287 35288 |
# File 'lib/schemas.rb', line 35286 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35290 35291 35292 35293 35294 |
# File 'lib/schemas.rb', line 35290 def to_dynamic { "slug" => slug, } end |
#to_json(options = nil) ⇒ Object
35296 35297 35298 |
# File 'lib/schemas.rb', line 35296 def to_json( = nil) JSON.generate(to_dynamic, ) end |