Sha256: b8f57ca586fc2cad761ca590f3ada6f975de14e26d125d04d077b3a39604001d
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 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}.merge(self.user.auth)) 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 |
---|---|
hexorx-rumblr-0.0.4 | lib/rumblr/tumblelog.rb |