Sha256: f5d63fed2972e5066255504451f21c55244ca66227e3544aee1832b0b294772b
Contents?: true
Size: 456 Bytes
Versions: 12
Compression:
Stored size: 456 Bytes
Contents
class TumblrWrapper::BlogResource < TumblrWrapper::Resource attr_reader :hostname, :access_token def initialize(base_hostname, access_token=nil) @hostname = base_hostname super(access_token) end def blog TumblrWrapper::Blog.new(@hostname, access_token) end def post TumblrWrapper::Post.new(@hostname, access_token) end protected def long_path(path) "/#{TumblrWrapper.version}/blog/#{hostname}/#{path}" end end
Version data entries
12 entries across 12 versions & 1 rubygems