Class: GetScimV2UsersResponse400

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



15528
15529
15530
15531
15532
15533
15534
15535
# File 'lib/schemas.rb', line 15528

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

.from_json!(json) ⇒ Object



15537
15538
15539
# File 'lib/schemas.rb', line 15537

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

Instance Method Details

#to_dynamicObject



15541
15542
15543
15544
15545
15546
15547
# File 'lib/schemas.rb', line 15541

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

#to_json(options = nil) ⇒ Object



15549
15550
15551
# File 'lib/schemas.rb', line 15549

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