Class: Infisical::Models::SecretTag
- Inherits:
-
Struct
- Object
- Struct
- Infisical::Models::SecretTag
- Defined in:
- lib/infisical/models/secret.rb
Overview
A tag attached to a secret.
Instance Attribute Summary collapse
-
#color ⇒ String?
Display color of the tag.
-
#id ⇒ String
Unique id of the tag.
-
#name ⇒ String
Display name of the tag.
-
#slug ⇒ String
URL-safe identifier of the tag.
Class Method Summary collapse
- .from_api(data) ⇒ Object private
Instance Attribute Details
#color ⇒ String?
Returns display color of the tag.
29 30 31 32 33 34 |
# File 'lib/infisical/models/secret.rb', line 29 SecretTag = Struct.new(:id, :slug, :name, :color, keyword_init: true) do # @api private def self.from_api(data) new(id: data["id"], slug: data["slug"], name: data["name"], color: data["color"]) end end |
#id ⇒ String
Returns unique id of the tag.
29 30 31 32 33 34 |
# File 'lib/infisical/models/secret.rb', line 29 SecretTag = Struct.new(:id, :slug, :name, :color, keyword_init: true) do # @api private def self.from_api(data) new(id: data["id"], slug: data["slug"], name: data["name"], color: data["color"]) end end |
#name ⇒ String
Returns display name of the tag.
29 30 31 32 33 34 |
# File 'lib/infisical/models/secret.rb', line 29 SecretTag = Struct.new(:id, :slug, :name, :color, keyword_init: true) do # @api private def self.from_api(data) new(id: data["id"], slug: data["slug"], name: data["name"], color: data["color"]) end end |
#slug ⇒ String
Returns URL-safe identifier of the tag.
29 30 31 32 33 34 |
# File 'lib/infisical/models/secret.rb', line 29 SecretTag = Struct.new(:id, :slug, :name, :color, keyword_init: true) do # @api private def self.from_api(data) new(id: data["id"], slug: data["slug"], name: data["name"], color: data["color"]) 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.
31 32 33 |
# File 'lib/infisical/models/secret.rb', line 31 def self.from_api(data) new(id: data["id"], slug: data["slug"], name: data["name"], color: data["color"]) end |