Class: WorkOS::Vault::ObjectUpdateBy

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



44
45
46
# File 'lib/workos/vault.rb', line 44

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



44
45
46
# File 'lib/workos/vault.rb', line 44

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



45
46
47
48
# File 'lib/workos/vault.rb', line 45

def self.from_hash(hash)
  return nil if hash.nil?
  new(id: hash["id"], name: hash["name"])
end