Class: BucketSdk::Models::ListResponse
- Inherits:
-
Object
- Object
- BucketSdk::Models::ListResponse
- Defined in:
- lib/bucket_sdk/models/list_response.rb
Instance Attribute Summary collapse
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize(data) ⇒ ListResponse
constructor
A new instance of ListResponse.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ ListResponse
Returns a new instance of ListResponse.
8 9 10 |
# File 'lib/bucket_sdk/models/list_response.rb', line 8 def initialize(data) @objects = data["objects"] || [] end |
Instance Attribute Details
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
6 7 8 |
# File 'lib/bucket_sdk/models/list_response.rb', line 6 def objects @objects end |
Instance Method Details
#to_h ⇒ Object
12 13 14 15 16 |
# File 'lib/bucket_sdk/models/list_response.rb', line 12 def to_h { objects: objects } end |