Class: PostScimV2GroupsResponse500

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



26618
26619
26620
26621
26622
26623
26624
26625
# File 'lib/schemas.rb', line 26618

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

.from_json!(json) ⇒ Object



26627
26628
26629
# File 'lib/schemas.rb', line 26627

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

Instance Method Details

#to_dynamicObject



26631
26632
26633
26634
26635
26636
26637
# File 'lib/schemas.rb', line 26631

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

#to_json(options = nil) ⇒ Object



26639
26640
26641
# File 'lib/schemas.rb', line 26639

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