Sha256: 23daca602eec12721be10800b06471a78b52459fceca16a0d9c42166d0f35842
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
module Tumbz class User include Model include Her::Model uses_api Tumbz.api custom_get :search 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 end def self.sign_out! Tumbz.access_token = nil Tumbz.access_token.nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tumbz-0.0.4 | lib/tumbz/user.rb |
tumbz-0.0.2 | lib/tumbz/user.rb |