Class: GetWorkspacesWorkspaceIDTagsResponse404

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



17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
# File 'lib/schemas.rb', line 17644

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

.from_json!(json) ⇒ Object



17655
17656
17657
# File 'lib/schemas.rb', line 17655

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

Instance Method Details

#to_dynamicObject



17659
17660
17661
17662
17663
17664
17665
17666
17667
# File 'lib/schemas.rb', line 17659

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

#to_json(options = nil) ⇒ Object



17669
17670
17671
# File 'lib/schemas.rb', line 17669

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