ruby-miradore 2.2.6 → 2.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby/miradore/version.rb +1 -1
- data/lib/ruby/miradore.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca67778e21e76a8fb1caa3ce6f8d3afec5ea3da041b67cce2e54948eff504e8
|
4
|
+
data.tar.gz: 32a0a508f6149c6b1dbdfa664c9b456bfc6a8aac83dcf4556d412b437e2ac037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a92fdc54501ae36f96b1db4a745f258487fbbcf3b17602f9dd080e926d8b63e016f28f7a587d46960616578e2a553472f014f2429d57f0ccd400ffc77077197
|
7
|
+
data.tar.gz: 589a6e1121166c520fe9ed9c6cbfe3fbc408d44fd9ebb2f1dc154ccab32c5bc694f5f0893ad0d4fb0f1ace1f8afcd1736a090725f86feca46d871ba0ca67e724
|
data/lib/ruby/miradore.rb
CHANGED
@@ -25,11 +25,13 @@ module Ruby
|
|
25
25
|
format :json
|
26
26
|
|
27
27
|
attr_writer :subdomain, :auth
|
28
|
+
attr_accessor :json
|
28
29
|
|
29
30
|
def initialize(json = {})
|
30
31
|
super json
|
31
32
|
@subdomain ||= json[:subdomain]
|
32
33
|
@auth ||= json[:auth]
|
34
|
+
@json ||= json.to_json
|
33
35
|
remove_instance_variable(:@subdomain) if @subdomain.nil?
|
34
36
|
remove_instance_variable(:@auth) if @auth.nil?
|
35
37
|
end
|