Sha256: d433e8d7d98759c69486eff76e9cc54ec1b3056474c1f11f26112216befeead2

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sysdig-0.3.1 lib/sysdig/get_user_notifications.rb
sysdig-0.3.0 lib/sysdig/get_user_notifications.rb
sysdig-0.2.4 lib/sysdig/get_user_notifications.rb
sysdig-0.2.3 lib/sysdig/get_user_notifications.rb
sysdig-0.2.0 lib/sysdig/get_user_notifications.rb