Class: PostScimV2GroupsResponse401

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



26465
26466
26467
26468
26469
26470
26471
26472
# File 'lib/schemas.rb', line 26465

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

.from_json!(json) ⇒ Object



26474
26475
26476
# File 'lib/schemas.rb', line 26474

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

Instance Method Details

#to_dynamicObject



26478
26479
26480
26481
26482
26483
26484
# File 'lib/schemas.rb', line 26478

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

#to_json(options = nil) ⇒ Object



26486
26487
26488
# File 'lib/schemas.rb', line 26486

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