solaredge 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38edb8662b4efec37323a15826edf8ee13280061
4
- data.tar.gz: 2a81605fa530d746441dc561deca80782d6a954a
3
+ metadata.gz: 5fb48a0918a8c2497e181428220be839b825cba3
4
+ data.tar.gz: 306550705ab2146437dea5e39642d9885011bd68
5
5
  SHA512:
6
- metadata.gz: 54a37dffc64785776950644a3d5985c12d420149410a26c1e1bd5864c552d85986cb10efa335a3f8989dcbba9df2459245ba5d5989ae3d6bc5aef3daff86b2b4
7
- data.tar.gz: 01259ae473a40fc3dc2c4a540002ce74b555c764e050583b93470e541225c5244a8a101f07434b0e57fdda27279a348565de5df4d162d7589794fb1085f2442d
6
+ metadata.gz: 101e90e5406fc8f5e897593909a31c8e52938d7e4d819d70e5968ef62541bb9aa091d12975c9458439ceda302fa44195186f70be6ca2c8b9d8eeb9121e205fdc
7
+ data.tar.gz: 2702e21b62d22290dddaaf325325938987eef66f5bb3824056c9a0fdc9c533055b363bee44a5f4d79b5a56c30d14a3f4e468f42115225b1ce79e8f5cce4d01d1
@@ -12,7 +12,7 @@ module SolarEdge
12
12
  @details = id_or_details
13
13
  @id = @details['id']
14
14
  else
15
- @id = id
15
+ @id = id_or_details
16
16
  end
17
17
  end
18
18
 
@@ -65,7 +65,7 @@ module SolarEdge
65
65
  private
66
66
 
67
67
  def details
68
- @details ||= @client.send(:query, "/site/#{id}/details")
68
+ @details ||= @client.send(:query, "/site/#{id}/details")['details']
69
69
  end
70
70
  end
71
71
  end
@@ -9,7 +9,7 @@ module SolarEdge
9
9
  end
10
10
 
11
11
  def find(id)
12
- Site.new(client, id)
12
+ Site.new(@client, id)
13
13
  end
14
14
 
15
15
  def size
@@ -1,3 +1,3 @@
1
1
  module SolarEdge
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solaredge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer