ruby-miradore 2.2.8 → 2.2.9
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.
- checksums.yaml +4 -4
- data/lib/ruby/miradore/version.rb +1 -1
- data/lib/ruby/miradore.rb +5 -2
- 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: 32cd1130d315e189325c8d73590b1ce1d5889734b50d157dd3495cdd1f3ea229
|
|
4
|
+
data.tar.gz: 6aa9217dedeb2b880035d6067ffa4e1934167fb5e07b99d62cc16f85e7e01f23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b72485967e471d2e5245e0274176c10d16ed76965fc688aaf5cc9f836e27ef2cc39a6384378993a048714334312b35467e5128c46d759ba16ac302584c439c5e
|
|
7
|
+
data.tar.gz: cf835f493a6be0b063bcb34e5acc883e15b30ced00f9a1f691e3848c4397b93c9c6c2723920bbe004e4597cc9ba672a3dad381645441a633d8780dbfad47276c
|
data/lib/ruby/miradore.rb
CHANGED
|
@@ -24,8 +24,7 @@ module Ruby
|
|
|
24
24
|
include HTTParty
|
|
25
25
|
format :json
|
|
26
26
|
|
|
27
|
-
attr_writer :subdomain, :auth
|
|
28
|
-
attr_accessor :json
|
|
27
|
+
attr_writer :subdomain, :auth, :json
|
|
29
28
|
|
|
30
29
|
def initialize(json = {})
|
|
31
30
|
super json
|
|
@@ -36,6 +35,10 @@ module Ruby
|
|
|
36
35
|
remove_instance_variable(:@auth) if @auth.nil?
|
|
37
36
|
end
|
|
38
37
|
|
|
38
|
+
def as_json(options = nil)
|
|
39
|
+
@json
|
|
40
|
+
end
|
|
41
|
+
|
|
39
42
|
class << self
|
|
40
43
|
#
|
|
41
44
|
# This call will perform all GET calls regardless the API version that it's calling.
|