Class: PutScimV2UsersUserIDResponse404

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



34666
34667
34668
34669
34670
34671
34672
34673
# File 'lib/schemas.rb', line 34666

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

.from_json!(json) ⇒ Object



34675
34676
34677
# File 'lib/schemas.rb', line 34675

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

Instance Method Details

#to_dynamicObject



34679
34680
34681
34682
34683
34684
34685
# File 'lib/schemas.rb', line 34679

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

#to_json(options = nil) ⇒ Object



34687
34688
34689
# File 'lib/schemas.rb', line 34687

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