Class: PutScimV2UsersUserIDResponse401

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



34592
34593
34594
34595
34596
34597
34598
34599
# File 'lib/schemas.rb', line 34592

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

.from_json!(json) ⇒ Object



34601
34602
34603
# File 'lib/schemas.rb', line 34601

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

Instance Method Details

#to_dynamicObject



34605
34606
34607
34608
34609
34610
34611
# File 'lib/schemas.rb', line 34605

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

#to_json(options = nil) ⇒ Object



34613
34614
34615
# File 'lib/schemas.rb', line 34613

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