Class: PartitionedResource

Inherits:
Array
  • Object
show all
Defined in:
lib/soundcloud/partitioned_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#next_partitionObject

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

#get_next_partition(soundcloud_method) ⇒ Object



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