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