Class: WorkOS::Vault::ObjectDigest

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



76
77
78
# File 'lib/workos/vault.rb', line 76

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



76
77
78
# File 'lib/workos/vault.rb', line 76

def name
  @name
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



76
77
78
# File 'lib/workos/vault.rb', line 76

def updated_at
  @updated_at
end

Class Method Details

.from_hash(hash) ⇒ Object



77
78
79
# File 'lib/workos/vault.rb', line 77

def self.from_hash(hash)
  new(id: hash["id"], name: hash["name"], updated_at: hash["updated_at"])
end