Class: PostScimV2UsersResponse429

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



27027
27028
27029
27030
27031
27032
27033
27034
# File 'lib/schemas.rb', line 27027

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

.from_json!(json) ⇒ Object



27036
27037
27038
# File 'lib/schemas.rb', line 27036

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

Instance Method Details

#to_dynamicObject



27040
27041
27042
27043
27044
27045
27046
# File 'lib/schemas.rb', line 27040

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

#to_json(options = nil) ⇒ Object



27048
27049
27050
# File 'lib/schemas.rb', line 27048

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