summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/evendoors/particle.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb
index dabe2e9..bb93729 100644
--- a/lib/evendoors/particle.rb
+++ b/lib/evendoors/particle.rb
@@ -80,6 +80,13 @@ module EvenDoors
@payload[EvenDoors::ERROR_FIELD]=e
end
#
+ def apply_link! lnk
+ @src = lnk.door
+ clear_dsts!
+ add_dsts lnk.dsts
+ set_link_fields lnk.fields
+ end
+ #
# data manipulation
#
def []= k, v