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

Version Path
tumblr_wrapper-0.4.2 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.4.1 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.4.0 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.3.4 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.3.3 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.3.2 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.3.1 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.3.0 lib/tumblr_wrapper/resources/blog_resource.rb
tumblr_wrapper-0.2.1 lib/tumblr_wrapper/blog_resource.rb
tumblr_wrapper-0.2.0 lib/tumblr_wrapper/blog_resource.rb
tumblr_wrapper-0.1.1 lib/tumblr_wrapper/blog_resource.rb
tumblr_wrapper-0.1.0 lib/tumblr_wrapper/blog_resource.rb