rscalr 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,14 @@
1
1
  class Dashboard
2
2
 
3
- def initialize client
4
- @client = client
3
+ def initialize config
4
+ if config.is_a?(Scalr)
5
+ @client = config
6
+ elsif config.is_a?(Hash)
7
+ @client = Scalr.new(config)
8
+ else
9
+ raise 'Dashboard may only be initialized with a config Hash or Scalr object'
10
+ end
11
+
5
12
  @env_id = @client.env_id
6
13
  end
7
14
 
@@ -1,3 +1,3 @@
1
1
  module Rscalr
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscalr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: