Class: Retab::SecretValueResponse

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/secrets/secret_value_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  secret: :secret
}.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) ⇒ SecretValueResponse

Returns a new instance of SecretValueResponse.



14
15
16
17
18
# File 'lib/retab/secrets/secret_value_response.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @secret = hash[:secret] ? Retab::SecretValue.new(hash[:secret]) : nil
end

Instance Attribute Details

#secretObject

Returns the value of attribute secret.



12
13
14
# File 'lib/retab/secrets/secret_value_response.rb', line 12

def secret
  @secret
end