Class: PutScimV2UsersUserIDResponse429

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



34703
34704
34705
34706
34707
34708
34709
34710
# File 'lib/schemas.rb', line 34703

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

.from_json!(json) ⇒ Object



34712
34713
34714
# File 'lib/schemas.rb', line 34712

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

Instance Method Details

#to_dynamicObject



34716
34717
34718
34719
34720
34721
34722
# File 'lib/schemas.rb', line 34716

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

#to_json(options = nil) ⇒ Object



34724
34725
34726
# File 'lib/schemas.rb', line 34724

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