Sha256: b6af53bd01761bccec71501fe43d8b800df160a9c8aa50d52cb273e20d8a6329

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

module Rumblr
  
  class Tumblelog < Resource
    attr_reader :name, :timezone, :cname, :title, :url, :avatar_url, :is_primary, 
                :type, :private_id

    def posts
      return [] unless self.url
      log, posts = Client.instance.read(:url => self.url)
      return posts
    end
    
    class << self
      
      def find_by_url(url)
        log, posts = Client.instance.read(:url => url)
        return log
      end
    
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jamescallmebrent-rumblr-0.0.0 lib/rumblr/tumblelog.rb
jamescallmebrent-rumblr-0.0.1 lib/rumblr/tumblelog.rb