Class: PatchScimV2UsersUserIDResponse429

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



19186
19187
19188
19189
19190
19191
19192
19193
# File 'lib/schemas.rb', line 19186

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

.from_json!(json) ⇒ Object



19195
19196
19197
# File 'lib/schemas.rb', line 19195

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

Instance Method Details

#to_dynamicObject



19199
19200
19201
19202
19203
19204
19205
# File 'lib/schemas.rb', line 19199

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

#to_json(options = nil) ⇒ Object



19207
19208
19209
# File 'lib/schemas.rb', line 19207

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