Cross Reference: action_caller.rb
xref
: /
ontohub
/
lib
/
hets
/
action_caller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
action_caller.rb revision e4d81151f4841a6354d043551a970418b32be02a
module
Hets
class
ActionCaller
<
Caller
attr_accessor
:
url_catalog
def
initialize
(
hets_instance
,
url_catalog
= [])
self.url
_catalog
=
url_catalog
msg
=
"<#{hets_instance}> not up."
raise
Hets
::
InactiveInstanceError
,
msg
unless
hets_instance.try
(:
up
?)
super
(
hets_instance
)
end
def
build_query_string
query_hash
= {}
query_hash
[:
"url-catalog"
] =
url_catalog.join
(
','
)
if
url_catalog.present
?
query_hash
end
def
handle_possible_hets_error
(
error
)
HetsErrorProcess.new
(
error
)
.
handle
rescue
Hets
::
NotAHetsError
raise
error
end
end
end