Class: GetScimV2UsersUserIDResponse500

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



16016
16017
16018
16019
16020
16021
16022
16023
# File 'lib/schemas.rb', line 16016

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

.from_json!(json) ⇒ Object



16025
16026
16027
# File 'lib/schemas.rb', line 16025

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

Instance Method Details

#to_dynamicObject



16029
16030
16031
16032
16033
16034
16035
# File 'lib/schemas.rb', line 16029

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

#to_json(options = nil) ⇒ Object



16037
16038
16039
# File 'lib/schemas.rb', line 16037

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