Class: Twilio::REST::Supersim::V1::SimContext::BillingPeriodListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Supersim::V1::SimContext::BillingPeriodListResponse
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
Instance Method Summary collapse
- #billing_period ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ BillingPeriodListResponse
constructor
A new instance of BillingPeriodListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ BillingPeriodListResponse
Returns a new instance of BillingPeriodListResponse.
218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb', line 218 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @billing_period = data_list.map do |data| BillingPeriodInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#billing_period ⇒ Object
230 231 232 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb', line 230 def billing_period @billing_period end |
#headers ⇒ Object
234 235 236 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb', line 234 def headers @headers end |
#status_code ⇒ Object
238 239 240 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb', line 238 def status_code @status_code end |