Sha256: cfcbe658ffeda38948ef527b564d2f127e5a9f74ace0c75faf7276f52f6ab2ea
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
Contents
require 'tumblr/blog' require 'tumblr/user' require 'tumblr/request' require 'tumblr/connection' require 'tumblr/post' require 'tumblr/tagged' require 'tumblr/helpers' module Tumblr class Client include Tumblr::Request include Tumblr::Client::Blog include Tumblr::Client::User include Tumblr::Client::Post include Tumblr::Client::Tagged include Tumblr::Client::Helper include Tumblr::Connection def initialize(attrs= {}) attrs = Tumblr.options.merge(attrs) Config::VALID_OPTIONS_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, attrs[key]) end end def api_host ENV['TUMBLR_API_HOST'] || 'api.tumblr.com' end def credentials { :consumer_key => @consumer_key, :consumer_secret => @consumer_secret, :token => @oauth_token, :token_secret => @oauth_token_secret } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tumblr_client-0.6.11 | lib/tumblr/client.rb |