Class: RemoteNotifier::Notification

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
app/models/remote_notifier/notification.rb

Class Method Summary collapse

Class Method Details

.create(args = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'app/models/remote_notifier/notification.rb', line 4

def self.create(args = {})
  obj = args.delete :object
  self.site = obj.remote
  self.user = obj.token
  self.password = obj.secret
  super(args)
end