class ChargeBee::ListResult

Attributes

next_offset[R]

Public Class Methods

new(response, next_offset=nil) click to toggle source
# File lib/chargebee/list_result.rb, line 13
def initialize(response, next_offset=nil)
  @response = response
  @list = Array.new
  @next_offset = JSON.parse(next_offset).to_s if next_offset
  initItems()
end

Private Instance Methods

initItems() click to toggle source
# File lib/chargebee/list_result.rb, line 21
def initItems()
  @response.each do |item|
    @list.push(Result.new(item))
  end
end