Class: PutScimV2UsersUserIDResponse400

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



34553
34554
34555
34556
34557
34558
34559
34560
34561
# File 'lib/schemas.rb', line 34553

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

.from_json!(json) ⇒ Object



34563
34564
34565
# File 'lib/schemas.rb', line 34563

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

Instance Method Details

#to_dynamicObject



34567
34568
34569
34570
34571
34572
34573
34574
# File 'lib/schemas.rb', line 34567

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

#to_json(options = nil) ⇒ Object



34576
34577
34578
# File 'lib/schemas.rb', line 34576

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