parse_caller.rb revision 511ba3e3d7deb4a13a03ce522a99a0395acc61b7
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen # Server-Instances should be started with the following
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen # arguments: `hets +RTS -K1G -RTS -a none`
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen def initialize(hets_instance, url_catalog = [])
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen raise Hets::InactiveInstanceError, msg unless hets_instance.up?
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen arguments = [escaped_iri, *MODE_ARGUMENTS[with_mode]]
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen api_uri = build_api_uri(CMD, arguments, build_query_string)
2a34e2be33f8a17d21384a5527ed9f75f4d270e0Timo Sirainen query_hash[:"url-catalog"] = url_catalog.join(',') if url_catalog.present?