Class: ChargeBee::ListResult
- Inherits:
-
Object
- Object
- ChargeBee::ListResult
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/chargebee/list_result.rb
Instance Attribute Summary collapse
-
#next_offset ⇒ Object
readonly
Returns the value of attribute next_offset.
Instance Method Summary collapse
-
#initialize(response, next_offset = nil) ⇒ ListResult
constructor
A new instance of ListResult.
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_offset ⇒ Object (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 |