Sha256: 9c18f446ef554b9a5c98d44db00dbfb19ce123de0c19d89b51029ff214a7be9f

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

module 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

9 entries across 9 versions & 2 rubygems

Version Path
jeffkreeftmeijer-tumblr-0.0.10 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.0.4 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.0.5 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.0.6 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.0.8 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.0.9 lib/tumblr/user.rb
jeffkreeftmeijer-tumblr-0.1.0 lib/tumblr/user.rb
zapnap-tumblr-0.0.10 lib/tumblr/user.rb
zapnap-tumblr-0.0.9 lib/tumblr/user.rb