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