Class: DeleteScimV2GroupsGroupIDResponse400

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



3801
3802
3803
3804
3805
3806
3807
3808
# File 'lib/schemas.rb', line 3801

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

.from_json!(json) ⇒ Object



3810
3811
3812
# File 'lib/schemas.rb', line 3810

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

Instance Method Details

#to_dynamicObject



3814
3815
3816
3817
3818
3819
3820
# File 'lib/schemas.rb', line 3814

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

#to_json(options = nil) ⇒ Object



3822
3823
3824
# File 'lib/schemas.rb', line 3822

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