Module: TumblrWrapper

Defined in:
lib/tumblr_wrapper.rb,
lib/tumblr_wrapper/version.rb

Defined Under Namespace

Modules: HTTP, Validators Classes: Blog, BlogResource, Client, InvalidParameter, MissingRequiredParameter, NoAccessToken, Post, Resource, Response

Constant Summary collapse

ENDPOINT =
'http://api.tumblr.com'
OAUTH_ENPOINT =
'http://www.tumblr.com'
API_VERSION =
'v2'
VERSION =
"0.4.2"

Class Method Summary collapse

Class Method Details

.consumer_keyObject


26
27
28
# File 'lib/tumblr_wrapper.rb', line 26

def self.consumer_key
  @@consumer_key
end

.consumer_key=(key) ⇒ Object


22
23
24
# File 'lib/tumblr_wrapper.rb', line 22

def self.consumer_key=(key)
  @@consumer_key = key
end

.consumer_secretObject


34
35
36
# File 'lib/tumblr_wrapper.rb', line 34

def self.consumer_secret
  @@consumer_secret
end

.consumer_secret=(secret) ⇒ Object


30
31
32
# File 'lib/tumblr_wrapper.rb', line 30

def self.consumer_secret=(secret)
  @@consumer_secret = secret
end

.date_formatObject


38
39
40
# File 'lib/tumblr_wrapper.rb', line 38

def self.date_format
  lambda { |t| t.utc.strftime("%Y-%m-%d %H:%M:%S GMT") }
end

.endpointObject


46
47
48
# File 'lib/tumblr_wrapper.rb', line 46

def self.endpoint
  ENDPOINT
end

.oauth_endpointObject


42
43
44
# File 'lib/tumblr_wrapper.rb', line 42

def self.oauth_endpoint
  OAUTH_ENDPOINT
end

.versionObject


50
51
52
# File 'lib/tumblr_wrapper.rb', line 50

def self.version
  API_VERSION
end