Sha256: 0db744d4d8fe933cd1f2a41fe4de4e331c04c33a17811e620ba1bf324f69daea
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module Tumbz class User include Model include Her::Model uses_api Tumbz.api def self.sign_in!(email, password) post_raw("auth", :email => email, :password => password) do |parsed_data| Tumbz.access_token = parsed_data[:data][:access_token] end Tumbz.access_token.nil? ? false : true end def self.sign_out! Tumbz.access_token = nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tumbz-0.0.1 | lib/tumbz/user.rb |