Module: Tumblr

Defined in:
lib/tumblr.rb

Overview

tumblr.rb

Defined Under Namespace

Classes: API, Account

Constant Summary collapse

Version =
'2.2.0'
Description =
'a command line utility and library which interfaces to the excellent tumblr blogging platform'

Class Method Summary collapse

Class Method Details

.descriptionObject



26
# File 'lib/tumblr.rb', line 26

def description() Tumblr::Description end

.for(*a, &b) ⇒ Object



28
29
30
# File 'lib/tumblr.rb', line 28

def for *a, &b
  Account.new *a, &b
end

.successful?(status) ⇒ Boolean

Returns:

  • (Boolean)


152
153
154
155
# File 'lib/tumblr.rb', line 152

def self.successful? status 
  status = status.status rescue status 
  HTTP::Status.successful? status
end

.versionObject



25
# File 'lib/tumblr.rb', line 25

def version() Tumblr::Version end