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, rheaders = nil) ⇒ ListResult

Returns a new instance of ListResult.



13
14
15
16
17
18
19
# File 'lib/chargebee/list_result.rb', line 13

def initialize(response, next_offset=nil, rheaders = nil)
  @response = response
  @rheaders = rheaders
  @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

Instance Method Details

#get_response_headersObject



21
22
23
# File 'lib/chargebee/list_result.rb', line 21

def get_response_headers()
  @rheaders
end