Class: Sysdig::GetUserNotifications

Inherits:
Request
  • Object
show all
Defined in:
lib/sysdig/get_user_notifications.rb

Instance Method Summary collapse

Instance Method Details

#mockObject



9
10
11
12
13
# File 'lib/sysdig/get_user_notifications.rb', line 9

def mock
  service.response(
    :body => { "userNotification" => service.data[:user_notifications] }
  )
end

#realObject



2
3
4
5
6
7
# File 'lib/sysdig/get_user_notifications.rb', line 2

def real
  service.request(
    :method => :get,
    :path   => "/api/settings/notifications",
  )
end