Class: GetScimV2GroupsResponse429

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



14738
14739
14740
14741
14742
14743
14744
14745
# File 'lib/schemas.rb', line 14738

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

.from_json!(json) ⇒ Object



14747
14748
14749
# File 'lib/schemas.rb', line 14747

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

Instance Method Details

#to_dynamicObject



14751
14752
14753
14754
14755
14756
14757
# File 'lib/schemas.rb', line 14751

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

#to_json(options = nil) ⇒ Object



14759
14760
14761
# File 'lib/schemas.rb', line 14759

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