Class: GetScimV2GroupsGroupIDResponse401

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



14286
14287
14288
14289
14290
14291
14292
14293
# File 'lib/schemas.rb', line 14286

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

.from_json!(json) ⇒ Object



14295
14296
14297
# File 'lib/schemas.rb', line 14295

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

Instance Method Details

#to_dynamicObject



14299
14300
14301
14302
14303
14304
14305
# File 'lib/schemas.rb', line 14299

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

#to_json(options = nil) ⇒ Object



14307
14308
14309
# File 'lib/schemas.rb', line 14307

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