Class: DeleteScimV2GroupsGroupIDResponse429

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



3949
3950
3951
3952
3953
3954
3955
3956
# File 'lib/schemas.rb', line 3949

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

.from_json!(json) ⇒ Object



3958
3959
3960
# File 'lib/schemas.rb', line 3958

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

Instance Method Details

#to_dynamicObject



3962
3963
3964
3965
3966
3967
3968
# File 'lib/schemas.rb', line 3962

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

#to_json(options = nil) ⇒ Object



3970
3971
3972
# File 'lib/schemas.rb', line 3970

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