Class: Retab::SecretResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::SecretResponse
- Defined in:
- lib/retab/secrets/secret_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ secret: :secret }.freeze
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ SecretResponse
constructor
A new instance of SecretResponse.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ SecretResponse
Returns a new instance of SecretResponse.
14 15 16 17 18 |
# File 'lib/retab/secrets/secret_response.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @secret = hash[:secret] ? Retab::Secret.new(hash[:secret]) : nil end |
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret.
12 13 14 |
# File 'lib/retab/secrets/secret_response.rb', line 12 def secret @secret end |