Class: GetScimV2ResourceTypesResponse401Error

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



14809
14810
14811
14812
14813
14814
14815
# File 'lib/schemas.rb', line 14809

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    message:                                           d["message"],
    get_scim_v2_resource_types_response401_error_name: d["name"],
  )
end

.from_json!(json) ⇒ Object



14817
14818
14819
# File 'lib/schemas.rb', line 14817

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

Instance Method Details

#to_dynamicObject



14821
14822
14823
14824
14825
14826
# File 'lib/schemas.rb', line 14821

def to_dynamic
  {
    "message" => message,
    "name"    => get_scim_v2_resource_types_response401_error_name,
  }
end

#to_json(options = nil) ⇒ Object



14828
14829
14830
# File 'lib/schemas.rb', line 14828

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