Class: GetScimV2ServiceProviderConfigResponseMeta

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



15139
15140
15141
15142
15143
15144
15145
# File 'lib/schemas.rb', line 15139

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    location:      d["location"],
    resource_type: d["resourceType"],
  )
end

.from_json!(json) ⇒ Object



15147
15148
15149
# File 'lib/schemas.rb', line 15147

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

Instance Method Details

#to_dynamicObject



15151
15152
15153
15154
15155
15156
# File 'lib/schemas.rb', line 15151

def to_dynamic
  {
    "location"     => location,
    "resourceType" => resource_type,
  }
end

#to_json(options = nil) ⇒ Object



15158
15159
15160
# File 'lib/schemas.rb', line 15158

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