diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/iotas.rb | 16 | ||||
-rw-r--r-- | lib/iotas/board.rb | 2 | ||||
-rw-r--r-- | lib/iotas/link.rb | 6 | ||||
-rw-r--r-- | lib/iotas/room.rb | 7 |
4 files changed, 17 insertions, 14 deletions
diff --git a/lib/iotas.rb b/lib/iotas.rb index abafc7c..4ac8c26 100644 --- a/lib/iotas.rb +++ b/lib/iotas.rb @@ -26,30 +26,18 @@ module Iotas ACT_SEP = '?'.freeze # ACT_GET = 'get'.freeze - ACT_FOLLOW = 'follow'.freeze ACT_ERROR = 'error'.freeze # SYS_ACT_HIBERNATE = 'hibernate'.freeze SYS_ACT_ADD_LINK = 'sys_add_link'.freeze # - LNK_SRC = 'edoors_lnk_src'.freeze - LNK_DSTS = 'edoors_lnk_dsts'.freeze - LNK_FIELDS = 'edoors_lnk_fields'.freeze - LNK_CONDF = 'edoors_lnk_condf'.freeze - LNK_CONDV = 'edoors_lnk_condv'.freeze - # FIELD_ERROR_MSG = 'edoors_error'.freeze FIELD_HIBERNATE_PATH= 'hibernate_path'.freeze # - ERROR_ROUTE_NS = 'routing error: no source'.freeze - ERROR_ROUTE_RRWD = 'routing error: right room, wrong door'.freeze - ERROR_ROUTE_DDWR = 'routing error: drill down, wrong room'.freeze - ERROR_ROUTE_TRWR = 'routing error: top room, wrong room'.freeze - ERROR_ROUTE_NDNL = 'routing error: no destination, no link'.freeze - ERROR_ROUTE_SND = 'routing error: system no destination'.freeze - # class Exception < ::Exception; end # + VERSION = "0.0.1" + # end # require 'json' diff --git a/lib/iotas/board.rb b/lib/iotas/board.rb index 8c1991f..9371354 100644 --- a/lib/iotas/board.rb +++ b/lib/iotas/board.rb @@ -21,6 +21,8 @@ # module Iotas # + ACT_FOLLOW = 'follow'.freeze + # class Board < Door # def initialize n, p diff --git a/lib/iotas/link.rb b/lib/iotas/link.rb index b1fd9ba..073ca1f 100644 --- a/lib/iotas/link.rb +++ b/lib/iotas/link.rb @@ -21,6 +21,12 @@ # module Iotas # + LNK_SRC = 'edoors_lnk_src'.freeze + LNK_DSTS = 'edoors_lnk_dsts'.freeze + LNK_FIELDS = 'edoors_lnk_fields'.freeze + LNK_CONDF = 'edoors_lnk_condf'.freeze + LNK_CONDV = 'edoors_lnk_condv'.freeze + # class Link # def initialize src, dsts, fields=nil, cond_fields=nil, cond_value=nil diff --git a/lib/iotas/room.rb b/lib/iotas/room.rb index 203b74c..4482a6b 100644 --- a/lib/iotas/room.rb +++ b/lib/iotas/room.rb @@ -21,6 +21,13 @@ # module Iotas # + ERROR_ROUTE_NS = 'routing error: no source'.freeze + ERROR_ROUTE_RRWD = 'routing error: right room, wrong door'.freeze + ERROR_ROUTE_DDWR = 'routing error: drill down, wrong room'.freeze + ERROR_ROUTE_TRWR = 'routing error: top room, wrong room'.freeze + ERROR_ROUTE_NDNL = 'routing error: no destination, no link'.freeze + ERROR_ROUTE_SND = 'routing error: system no destination'.freeze + # class Room < Iota # def initialize n, p |