Class: DeleteScimV2GroupsGroupIDResponse401

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



3838
3839
3840
3841
3842
3843
3844
3845
# File 'lib/schemas.rb', line 3838

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

.from_json!(json) ⇒ Object



3847
3848
3849
# File 'lib/schemas.rb', line 3847

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

Instance Method Details

#to_dynamicObject



3851
3852
3853
3854
3855
3856
3857
# File 'lib/schemas.rb', line 3851

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

#to_json(options = nil) ⇒ Object



3859
3860
3861
# File 'lib/schemas.rb', line 3859

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