Class Scrobbler::Base
In: lib/scrobbler/base.rb
Parent: Object

Methods

Public Class methods

[Source]

    # File lib/scrobbler/base.rb, line 8
 8:       def connection
 9:         @connection ||= REST::Connection.new(API_URL)
10:       end

[Source]

    # File lib/scrobbler/base.rb, line 12
12:       def fetch_and_parse(resource)
13:         Hpricot::XML(connection.get(resource))
14:       end

[Validate]