Class: PutWorkspacesWorkspaceIDTagsResponse403

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



35429
35430
35431
35432
35433
35434
35435
35436
35437
# File 'lib/schemas.rb', line 35429

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    detail:                                            d["detail"],
    status:                                            d["status"],
    title:                                             d["title"],
    put_workspaces_workspace_id_tags_response403_type: d["type"],
  )
end

.from_json!(json) ⇒ Object



35439
35440
35441
# File 'lib/schemas.rb', line 35439

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

Instance Method Details

#to_dynamicObject



35443
35444
35445
35446
35447
35448
35449
35450
# File 'lib/schemas.rb', line 35443

def to_dynamic
  {
    "detail" => detail,
    "status" => status,
    "title"  => title,
    "type"   => put_workspaces_workspace_id_tags_response403_type,
  }
end

#to_json(options = nil) ⇒ Object



35452
35453
35454
# File 'lib/schemas.rb', line 35452

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