Class: GetScimV2UsersUserIDResponse400

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



15833
15834
15835
15836
15837
15838
15839
15840
# File 'lib/schemas.rb', line 15833

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

.from_json!(json) ⇒ Object



15842
15843
15844
# File 'lib/schemas.rb', line 15842

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

Instance Method Details

#to_dynamicObject



15846
15847
15848
15849
15850
15851
15852
# File 'lib/schemas.rb', line 15846

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

#to_json(options = nil) ⇒ Object



15854
15855
15856
# File 'lib/schemas.rb', line 15854

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