Class: Twilio::REST::Lookups::V2::BucketListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Lookups::V2::BucketListResponse
- Defined in:
- lib/twilio-ruby/rest/lookups/v2/bucket.rb
Instance Method Summary collapse
- #bucket_instance ⇒ Object
-
#initialize(version, payload, key) ⇒ BucketListResponse
constructor
A new instance of BucketListResponse.
Constructor Details
#initialize(version, payload, key) ⇒ BucketListResponse
Returns a new instance of BucketListResponse.
256 257 258 259 260 261 262 |
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 256 def initialize(version, payload, key) @bucket_instance = payload.body[key].map do |data| BucketInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#bucket_instance ⇒ Object
264 265 266 |
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 264 def bucket_instance @instance end |