Class: PatchScimV2UsersUserIDResponse400

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



19038
19039
19040
19041
19042
19043
19044
19045
# File 'lib/schemas.rb', line 19038

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

.from_json!(json) ⇒ Object



19047
19048
19049
# File 'lib/schemas.rb', line 19047

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

Instance Method Details

#to_dynamicObject



19051
19052
19053
19054
19055
19056
19057
# File 'lib/schemas.rb', line 19051

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

#to_json(options = nil) ⇒ Object



19059
19060
19061
# File 'lib/schemas.rb', line 19059

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