Class: GetScimV2GroupsGroupIDResponse404

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



14359
14360
14361
14362
14363
14364
14365
14366
# File 'lib/schemas.rb', line 14359

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

.from_json!(json) ⇒ Object



14368
14369
14370
# File 'lib/schemas.rb', line 14368

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

Instance Method Details

#to_dynamicObject



14372
14373
14374
14375
14376
14377
14378
# File 'lib/schemas.rb', line 14372

def to_dynamic
  {
    "detail"  => detail,
    "schemas" => schemas,
    "status"  => status,
  }
end

#to_json(options = nil) ⇒ Object



14380
14381
14382
# File 'lib/schemas.rb', line 14380

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