Class: CredHubble::Resources::Credential

Inherits:
Resource show all
Defined in:
lib/cred_hubble/resources/credential.rb

Constant Summary collapse

TYPES =
[
  VALUE_TYPE = 'value'.freeze,
  JSON_TYPE = 'json'.freeze,
  PASSWORD_TYPE = 'password'.freeze,
  USER_TYPE = 'user'.freeze,
  CERTIFICATE_TYPE = 'certificate'.freeze,
  RSA_TYPE = 'rsa'.freeze,
  SSH_TYPE = 'ssh'.freeze
].freeze

Instance Method Summary collapse

Methods inherited from RestResource

from_json, #to_json

Instance Method Details

#attributes_for_putObject



21
22
23
# File 'lib/cred_hubble/resources/credential.rb', line 21

def attributes_for_put
  attributes.delete_if { |k, _| immutable_attributes.include?(k) }
end