restpack-core-client 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,8 +24,16 @@ module RestPack
|
|
24
24
|
def get_channel_id(host)
|
25
25
|
@channel_ids[host] ||= @api.get_domain(host)[:channel_id]
|
26
26
|
end
|
27
|
+
|
28
|
+
def get_configuration(key)
|
29
|
+
@configurations.find { |c| c.key == key }
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_service_domain(identifer)
|
33
|
+
config = get_configuration(identifer)
|
34
|
+
config.nil? ? nil : config.value[:domain]
|
35
|
+
end
|
27
36
|
end
|
28
37
|
end
|
29
38
|
end
|
30
|
-
end
|
31
|
-
|
39
|
+
end
|