Class: GetScimV2GroupsGroupIDResponseMeta

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



14132
14133
14134
14135
14136
14137
14138
14139
# File 'lib/schemas.rb', line 14132

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    created:       d["created"],
    last_modified: d["lastModified"],
    resource_type: d["resourceType"],
  )
end

.from_json!(json) ⇒ Object



14141
14142
14143
# File 'lib/schemas.rb', line 14141

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

Instance Method Details

#to_dynamicObject



14145
14146
14147
14148
14149
14150
14151
# File 'lib/schemas.rb', line 14145

def to_dynamic
  {
    "created"      => created,
    "lastModified" => last_modified,
    "resourceType" => resource_type,
  }
end

#to_json(options = nil) ⇒ Object



14153
14154
14155
# File 'lib/schemas.rb', line 14153

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