glass_sdk 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glass_sdk/base.rb +5 -1
- data/lib/glass_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eee01ec30e9584a7562c596b4a70d334e824ceaa
|
4
|
+
data.tar.gz: 69f889ce96893af1d3278afd6a702c885a9cf237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca7ebc4bd61d76c0431c59c5e4fab18edc602bad62d673bd24d8af05a6d3b4b1a84f50416887791b9f59e85a80ba0db773560943c8e6b795428c7745b26f78a6
|
7
|
+
data.tar.gz: 6592533d3b8bcc2dcbb6a634709d475e64e430c216b9ff821424b42281736a597f4a98ce74a644d55d2b6f7317d0085cc996e12e7ad36b20f978485024c53eca
|
data/lib/glass_sdk/base.rb
CHANGED
@@ -28,10 +28,14 @@ module GlassSdk
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
31
|
+
def index(headers={}, &block)
|
32
32
|
RestClient.get(request_url, headers, &block)
|
33
33
|
end
|
34
34
|
|
35
|
+
def show(id=nil, headers={}, &block)
|
36
|
+
RestClient.get(request_url(id), headers, &block)
|
37
|
+
end
|
38
|
+
|
35
39
|
def post(payload, headers={}, &block)
|
36
40
|
RestClient.post(request_url, payload, headers, &block)
|
37
41
|
end
|
data/lib/glass_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glass_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|