Class: Twilio::REST::FlexApi::V1::InsightsSegmentsListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::InsightsSegmentsListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSegmentsListResponse
constructor
A new instance of InsightsSegmentsListResponse.
- #insights_segments ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSegmentsListResponse
Returns a new instance of InsightsSegmentsListResponse.
242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 242 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @insights_segments = data_list.map do |data| InsightsSegmentsInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
258 259 260 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 258 def headers @headers end |
#insights_segments ⇒ Object
254 255 256 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 254 def insights_segments @insights_segments end |
#status_code ⇒ Object
262 263 264 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 262 def status_code @status_code end |