Class: Infisical::Models::SecretMetadata
- Inherits:
-
Struct
- Object
- Struct
- Infisical::Models::SecretMetadata
- Defined in:
- lib/infisical/models/secret.rb
Overview
A key/value metadata entry attached to a secret.
Instance Attribute Summary collapse
-
#key ⇒ String
Metadata key.
-
#value ⇒ String
Metadata value.
Class Method Summary collapse
- .from_api(data) ⇒ Object private
Instance Attribute Details
#key ⇒ String
Returns metadata key.
12 13 14 15 16 17 |
# File 'lib/infisical/models/secret.rb', line 12 SecretMetadata = Struct.new(:key, :value, keyword_init: true) do # @api private def self.from_api(data) new(key: data["key"], value: data["value"]) end end |
#value ⇒ String
Returns metadata value.
12 13 14 15 16 17 |
# File 'lib/infisical/models/secret.rb', line 12 SecretMetadata = Struct.new(:key, :value, keyword_init: true) do # @api private def self.from_api(data) new(key: data["key"], value: data["value"]) end end |
Class Method Details
.from_api(data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/infisical/models/secret.rb', line 14 def self.from_api(data) new(key: data["key"], value: data["value"]) end |