Class: CredHubble::Resources::Credential
- Inherits:
-
Resource
- Object
- RestResource
- Resource
- CredHubble::Resources::Credential
- Defined in:
- lib/cred_hubble/resources/credential.rb
Direct Known Subclasses
CertificateCredential, JsonCredential, PasswordCredential, RsaCredential, SshCredential, UserCredential, ValueCredential
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
Instance Method Details
#attributes_for_put ⇒ Object
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 |