Sha256: 19f792c234ce5d80bad6e470e15aabe11c88140f3f1d4feb3af7ec363a22d860
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module Rumblr class User < Resource attr_reader :email, :password, :can_upload_video, :can_upload_aiff, :vimeo_login_url, :can_upload_audio def tumblelogs instance_variable_get(:@tumblelogs) || [] end def primary_tumblelog self.tumblelogs.find { |log| log.primary? } end class << self def login(attrs={}) email, password = attrs[:email], attrs[:password] Client.instance.authenticate(email,password) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jamescallmebrent-rumblr-0.0.2 | lib/rumblr/user.rb |