Class: PostScimV2UsersResponse403

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



26948
26949
26950
26951
26952
26953
26954
26955
# File 'lib/schemas.rb', line 26948

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

.from_json!(json) ⇒ Object



26957
26958
26959
# File 'lib/schemas.rb', line 26957

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

Instance Method Details

#to_dynamicObject



26961
26962
26963
26964
26965
26966
26967
# File 'lib/schemas.rb', line 26961

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

#to_json(options = nil) ⇒ Object



26969
26970
26971
# File 'lib/schemas.rb', line 26969

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