Sha256: 4a0de94144d292e99029bcf15bdb730f2a47263b187a34e5b82ada517777df8e

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

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

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

    def primary?
      is_primary == "yes"
    end
    
    class << self
      
      def find_by_url(url)
        log, posts = Client.instance.read(:url => url)
        return log
      end
    
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jamescallmebrent-rumblr-0.0.2 lib/rumblr/tumblelog.rb