Sha256: 7e37c8cd6f52fc3983d47d728415e5d124417c728de1e8fc9a8c341a7e5101cc

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

class Tumblr
  class User
    attr_accessor :email, :password, :tumblr
  
    # creates a User object and authenticates the user through the Tumblr API to get user data.  
    def initialize(email, password, authenticate = true)
      self.email = email
      self.password = password
      if(authenticate)
        self.tumblr = Tumblr::Request.authenticate(email,password)['tumblr']
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
gisikw-tumblr-0.1.3 lib/tumblr/user.rb
gisikw-tumblr-0.1.4 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.1.1 lib/tumblr/user.rb
matenia-tumblr-api-0.1.6 lib/tumblr/user.rb
tumblr-api-0.1.4 lib/tumblr/user.rb
tumblr-api-0.1.3 lib/tumblr/user.rb