Class: PatchScimV2UsersUserIDResponse403

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



19112
19113
19114
19115
19116
19117
19118
19119
# File 'lib/schemas.rb', line 19112

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

.from_json!(json) ⇒ Object



19121
19122
19123
# File 'lib/schemas.rb', line 19121

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

Instance Method Details

#to_dynamicObject



19125
19126
19127
19128
19129
19130
19131
# File 'lib/schemas.rb', line 19125

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

#to_json(options = nil) ⇒ Object



19133
19134
19135
# File 'lib/schemas.rb', line 19133

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