Sha256: 172255a750c468c08bfb665e08f22511bcc04cd8d4dde24b510246549812c945

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

require 'rubygems' 
    gem 'httparty', "<= 4.3"
require 'httparty'
require 'tumblr/user'
require 'tumblr/request'
require 'tumblr/post'

class Tumblr    
  class << self
    attr_reader :blog
    
    def blog=(_blog)
      @blog = (_blog =~ /\./) ? _blog : "#{_blog}.tumblr.com"
    end
  end
  
  # tumblr errors
  class TumblrError < StandardError; end
  # tumblr 403 errors
  class Forbidden   < TumblrError; end
  # tumblr 400 errors
  class BadRequest  < TumblrError; end  
  # tumblr 404 errors
  class NotFound    < TumblrError; end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matenia-tumblr-api-0.1.6 lib/tumblr.rb