Class: Georgia::CreateActivity

Inherits:
Object
  • Object
show all
Defined in:
app/services/georgia/create_activity.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, action, options = {}) ⇒ CreateActivity

Returns a new instance of CreateActivity.



4
5
6
7
8
# File 'app/services/georgia/create_activity.rb', line 4

def initialize object, action, options={}
  @object  = object
  @action  = action
  @options = options
end

Instance Method Details

#callObject



10
11
12
13
# File 'app/services/georgia/create_activity.rb', line 10

def call
  @object.create_activity @action, @options
  # push to websocket to display on Dashboard
end