Class: Georgia::CreateActivity
- Inherits:
-
Object
- Object
- Georgia::CreateActivity
- Defined in:
- app/services/georgia/create_activity.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(object, action, options = {}) ⇒ CreateActivity
constructor
A new instance of CreateActivity.
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, ={} @object = object @action = action @options = end |
Instance Method Details
#call ⇒ Object
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 |