lib/bleacher_api.rb in bleacher_api-0.1.2 vs lib/bleacher_api.rb in bleacher_api-0.1.3
- old
+ new
@@ -23,10 +23,18 @@
false
end
end
end
+ class Article
+ class <<self
+ def article(id, options={})
+ BleacherApi.call(:get, 'article/article', options.merge(:id => id))
+ end
+ end
+ end
+
class Authenticate
class <<self
def login(email, password, redirect=nil)
result = BleacherApi.call(:post, 'authenticate/login', {
'user[email]' => email,
@@ -90,6 +98,6 @@
:token => token
})
end
end
end
-end
\ No newline at end of file
+end