Class: DeleteScimV2GroupsGroupIDResponse403

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



3875
3876
3877
3878
3879
3880
3881
3882
# File 'lib/schemas.rb', line 3875

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

.from_json!(json) ⇒ Object



3884
3885
3886
# File 'lib/schemas.rb', line 3884

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

Instance Method Details

#to_dynamicObject



3888
3889
3890
3891
3892
3893
3894
# File 'lib/schemas.rb', line 3888

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

#to_json(options = nil) ⇒ Object



3896
3897
3898
# File 'lib/schemas.rb', line 3896

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