Class: GetScimV2UsersUserIDResponse401

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



15870
15871
15872
15873
15874
15875
15876
15877
# File 'lib/schemas.rb', line 15870

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

.from_json!(json) ⇒ Object



15879
15880
15881
# File 'lib/schemas.rb', line 15879

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

Instance Method Details

#to_dynamicObject



15883
15884
15885
15886
15887
15888
15889
# File 'lib/schemas.rb', line 15883

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

#to_json(options = nil) ⇒ Object



15891
15892
15893
# File 'lib/schemas.rb', line 15891

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