Sha256: 6b70e18f6750065cf9c38ab78f42fd64dea8138fbe1ab3b2126cfeef8e430ebf

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 Bytes

Contents

module GoogleAjax
  class Feed < Results
    ##
    # :call-seq:
    #   find(query, args = {})
    # will return a list of feeds that match the given query
    # Arguments: http://code.google.com/apis/ajaxfeeds/documentation/reference.html#_fonje_find
    standard_api(:find){|h| h['entries']}

    ##
    # :call-seq:
    #   load(url, args = {})
    # downloads this feed from Google's servers
    # Arguments: http://code.google.com/apis/ajaxfeeds/documentation/reference.html#_fonje_load
    standard_api(:load){|h| h['feed']}

    ##
    # :call-seq:
    #   lookup(url, args = {})
    # will return the associated feed if it exists for a given url    
    # Arguments: http://code.google.com/apis/ajaxfeeds/documentation/reference.html#_intro_fonje
    standard_api :lookup
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
googleajax-1.0.1 lib/googleajax/feed.rb
googleajax-1.0.0 lib/googleajax/feed.rb