Class: Retab::SecretValue
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::SecretValue
- Defined in:
- lib/retab/secrets/secret_value.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, value: :value, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ SecretValue
constructor
A new instance of SecretValue.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ SecretValue
Returns a new instance of SecretValue.
20 21 22 23 24 25 26 |
# File 'lib/retab/secrets/secret_value.rb', line 20 def initialize(json) super() hash = self.class.normalize(json) @name = hash[:name] @value = hash[:value] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/retab/secrets/secret_value.rb', line 14 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
14 15 16 |
# File 'lib/retab/secrets/secret_value.rb', line 14 def updated_at @updated_at end |
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'lib/retab/secrets/secret_value.rb', line 14 def value @value end |