Class: Postzord::Dispatcher::Public

Inherits:
Postzord::Dispatcher show all
Defined in:
lib/postzord/dispatcher/public.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Attribute Summary

Attributes inherited from Postzord::Dispatcher

#object, #opts, #sender, #subscribers, #xml

Class Method Summary collapse

Methods inherited from Postzord::Dispatcher

build, defer_build_and_post, #initialize, object_should_be_processed_as_public?, #post

Constructor Details

This class inherits a constructor from Postzord::Dispatcher

Class Method Details

.receive_url_for(person) ⇒ String


16
17
18
# File 'lib/postzord/dispatcher/public.rb', line 16

def self.receive_url_for(person)
  person.url + 'receive/public'
end

.salmon(user, activity) ⇒ Salmon::EncryptedSlap


10
11
12
# File 'lib/postzord/dispatcher/public.rb', line 10

def self.salmon(user, activity)
  Salmon::Slap.create_by_user_and_activity(user, activity)
end