lib/bleacher_api.rb in bleacher_api-0.1.0 vs lib/bleacher_api.rb in bleacher_api-0.1.1

- old
+ new

@@ -25,18 +25,23 @@ end end class Authenticate class <<self - def login(email, password) + def login(email, password, redirect=nil) result = BleacherApi.call(:post, 'authenticate/login', { 'user[email]' => email, - 'user[password]' => password + 'user[password]' => password, + 'redirect' => nil }) if result BleacherApi::Config.token result['token'] end result + end + + def logout + BleacherApi.call(:get, 'authenticate/logout') end end end class Front \ No newline at end of file