Class: ChargeBee::ListResult

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/chargebee/list_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, next_offset = nil) ⇒ ListResult

Returns a new instance of ListResult.



13
14
15
16
17
18
# 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

Instance Attribute Details

#next_offsetObject (readonly)

Returns the value of attribute next_offset.



11
12
13
# File 'lib/chargebee/list_result.rb', line 11

def next_offset
  @next_offset
end