Class: Bustle::Publisher

Inherits:
Object
  • Object
show all
Includes:
Concern::TargetResource
Defined in:
lib/bustle/models/publisher.rb

Instance Method Summary collapse

Methods included from Concern::TargetResource

#target_resource

Instance Method Details

#activities(conditions = {}) ⇒ Object



9
10
11
# File 'lib/bustle/models/publisher.rb', line 9

def activities(conditions = {})
  Activities.by(self, conditions)
end

#publish(data = {}) ⇒ Object



5
6
7
# File 'lib/bustle/models/publisher.rb', line 5

def publish(data = {})
  Activities.add(self, data)
end