Class: GetScimV2ServiceProviderConfigResponseFilter

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



15111
15112
15113
15114
15115
15116
15117
# File 'lib/schemas.rb', line 15111

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    max_results: d["maxResults"],
    supported:   d["supported"],
  )
end

.from_json!(json) ⇒ Object



15119
15120
15121
# File 'lib/schemas.rb', line 15119

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

Instance Method Details

#to_dynamicObject



15123
15124
15125
15126
15127
15128
# File 'lib/schemas.rb', line 15123

def to_dynamic
  {
    "maxResults" => max_results,
    "supported"  => supported,
  }
end

#to_json(options = nil) ⇒ Object



15130
15131
15132
# File 'lib/schemas.rb', line 15130

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