Sha256: c0c122f49606bdfdc4a0ff4545c9e91cc06d13151f2e1204f3dcab21b8cf5350
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 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 def auth {:email => self.email, :password => self.password} end class << self def login(attrs={}) email, password = attrs[:email], attrs[:password] Client.instance.authenticate(email,password) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexorx-rumblr-0.0.3 | lib/rumblr/user.rb |
hexorx-rumblr-0.0.4 | lib/rumblr/user.rb |