Class: WorkOS::Vault::ObjectMetadata

Inherits:
Data
  • Object
show all
Defined in:
lib/workos/vault.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



51
52
53
# File 'lib/workos/vault.rb', line 51

def context
  @context
end

#environment_idObject (readonly)

Returns the value of attribute environment_id

Returns:

  • (Object)

    the current value of environment_id



51
52
53
# File 'lib/workos/vault.rb', line 51

def environment_id
  @environment_id
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



51
52
53
# File 'lib/workos/vault.rb', line 51

def id
  @id
end

#key_idObject (readonly)

Returns the value of attribute key_id

Returns:

  • (Object)

    the current value of key_id



51
52
53
# File 'lib/workos/vault.rb', line 51

def key_id
  @key_id
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



51
52
53
# File 'lib/workos/vault.rb', line 51

def updated_at
  @updated_at
end

#updated_byObject (readonly)

Returns the value of attribute updated_by

Returns:

  • (Object)

    the current value of updated_by



51
52
53
# File 'lib/workos/vault.rb', line 51

def updated_by
  @updated_by
end

#version_idObject (readonly)

Returns the value of attribute version_id

Returns:

  • (Object)

    the current value of version_id



51
52
53
# File 'lib/workos/vault.rb', line 51

def version_id
  @version_id
end

Class Method Details

.from_hash(hash) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/workos/vault.rb', line 52

def self.from_hash(hash)
  new(
    context: hash["context"],
    environment_id: hash["environment_id"],
    id: hash["id"],
    key_id: hash["key_id"],
    updated_at: hash["updated_at"],
    updated_by: ObjectUpdateBy.from_hash(hash["updated_by"]),
    version_id: hash["version_id"]
  )
end