Class: PostScimV2GroupsResponse429

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



26581
26582
26583
26584
26585
26586
26587
26588
# File 'lib/schemas.rb', line 26581

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

.from_json!(json) ⇒ Object



26590
26591
26592
# File 'lib/schemas.rb', line 26590

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

Instance Method Details

#to_dynamicObject



26594
26595
26596
26597
26598
26599
26600
# File 'lib/schemas.rb', line 26594

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

#to_json(options = nil) ⇒ Object



26602
26603
26604
# File 'lib/schemas.rb', line 26602

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