Module: Freelancer::API::Notification::InstanceMethods
- Defined in:
- lib/freelancer/api/notification.rb
Instance Method Summary collapse
-
#news ⇒ Object
Return a list of available news items.
-
#notifications ⇒ Object
Get a list of available alerts for the current user.
Instance Method Details
#news ⇒ Object
Return a list of available news items
15 16 17 18 19 20 |
# File 'lib/freelancer/api/notification.rb', line 15 def news result = api_get("/Notification/getNews.json") ::Freelancer::Models::News.parse_collection(result, :shift => [ :"json-result", :items ]) end |
#notifications ⇒ Object
Get a list of available alerts for the current user
7 8 9 10 11 12 |
# File 'lib/freelancer/api/notification.rb', line 7 def notifications result = api_get("/Notification/getNotification.json") ::Freelancer::Models::Notification.parse_collection(result, :shift => [ :"json-result", :items, :notification ]) end |