restpack-core-client 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Core
3
3
  module Client
4
- VERSION = "0.1.19"
4
+ VERSION = "0.1.20"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack-core-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: