Class: ScimGroupResourceMembers

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



14463
14464
14465
14466
14467
14468
14469
# File 'lib/schemas.rb', line 14463

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    scim_group_resource_members_display: d["display"],
    value:                               d["value"],
  )
end

.from_json!(json) ⇒ Object



14471
14472
14473
# File 'lib/schemas.rb', line 14471

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

Instance Method Details

#to_dynamicObject



14475
14476
14477
14478
14479
14480
# File 'lib/schemas.rb', line 14475

def to_dynamic
  {
    "display" => scim_group_resource_members_display,
    "value"   => value,
  }
end

#to_json(options = nil) ⇒ Object



14482
14483
14484
# File 'lib/schemas.rb', line 14482

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