restpack-core-client 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,12 +26,12 @@ module RestPack
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def get_configuration(key)
|
29
|
-
@configurations.find { |c| c.key == key }
|
29
|
+
@configurations.find { |c| c.key == key.to_s }
|
30
30
|
end
|
31
|
-
|
32
|
-
def
|
33
|
-
config = get_configuration(
|
34
|
-
config.nil? ?
|
31
|
+
|
32
|
+
def get_configuration_value(key, default_value = nil)
|
33
|
+
config = get_configuration(key)
|
34
|
+
config.nil? ? default_value : config[:value]
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|