Class: GetWorkspacesWorkspaceIDTagsResponse401

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



17555
17556
17557
17558
17559
17560
17561
17562
17563
# File 'lib/schemas.rb', line 17555

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

.from_json!(json) ⇒ Object



17565
17566
17567
# File 'lib/schemas.rb', line 17565

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

Instance Method Details

#to_dynamicObject



17569
17570
17571
17572
17573
17574
17575
17576
# File 'lib/schemas.rb', line 17569

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

#to_json(options = nil) ⇒ Object



17578
17579
17580
# File 'lib/schemas.rb', line 17578

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