Class: PartitionedResource
- Inherits:
-
Array
- Object
- Array
- PartitionedResource
- Defined in:
- lib/soundcloud/partitioned_resource.rb
Instance Attribute Summary (collapse)
-
- (Object) next_partition
Returns the value of attribute next_partition.
Instance Method Summary (collapse)
Instance Attribute Details
- (Object) next_partition
Returns the value of attribute next_partition
3 4 5 |
# File 'lib/soundcloud/partitioned_resource.rb', line 3 def next_partition @next_partition end |
Instance Method Details
- (Object) get_next_partition(soundcloud_method)
5 6 7 8 9 10 11 12 |
# File 'lib/soundcloud/partitioned_resource.rb', line 5 def get_next_partition(soundcloud_method) if next_partition != nil path = next_partition[/\/[a-z]+\.[a-z]+\?.*/] soundcloud_method.find(:all,:from => path) else nil end end |