Class: WorkOS::Vault::ObjectVersion

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



82
83
84
# File 'lib/workos/vault.rb', line 82

def created_at
  @created_at
end

#current_versionObject (readonly)

Returns the value of attribute current_version

Returns:

  • (Object)

    the current value of current_version



82
83
84
# File 'lib/workos/vault.rb', line 82

def current_version
  @current_version
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



82
83
84
# File 'lib/workos/vault.rb', line 82

def id
  @id
end

Class Method Details

.from_hash(hash) ⇒ Object



83
84
85
# File 'lib/workos/vault.rb', line 83

def self.from_hash(hash)
  new(id: hash["id"], created_at: hash["created_at"], current_version: hash["current_version"])
end