Class: DeleteScimV2GroupsGroupIDResponse500

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



3986
3987
3988
3989
3990
3991
3992
3993
# File 'lib/schemas.rb', line 3986

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

.from_json!(json) ⇒ Object



3995
3996
3997
# File 'lib/schemas.rb', line 3995

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

Instance Method Details

#to_dynamicObject



3999
4000
4001
4002
4003
4004
4005
# File 'lib/schemas.rb', line 3999

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

#to_json(options = nil) ⇒ Object



4007
4008
4009
# File 'lib/schemas.rb', line 4007

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