Method: SoundcloudPlus#fetch!

Defined in:
lib/soundcloud-plus.rb

#fetch!Hashie Also known as: get!

Fetches resources from current path with current options

Examples:

Fetching user

client = SoundcloudPlus.new(:client_id => "client_id")
user = client.user(1234).fetch!
user.permalink # => "bob"

Returns:

  • (Hashie)

    Hashie containing resource from path



103
104
105
106
107
108
109
# File 'lib/soundcloud-plus.rb', line 103

def fetch!
   old_path = path
   if old_path && path.length > 0
      path = ""
      @results = get(old_path, @options)
   end
end