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