Class: Retab::SecretValue

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/retab/secrets/secret_value.rb', line 14

def name
  @name
end

#updated_atObject

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

#valueObject

Returns the value of attribute value.



14
15
16
# File 'lib/retab/secrets/secret_value.rb', line 14

def value
  @value
end