Module: Freelancer::API::Notification::InstanceMethods

Defined in:
lib/freelancer/api/notification.rb

Instance Method Summary collapse

Instance Method Details

#newsObject

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

#notificationsObject

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