spos-client 0.0.0 → 0.0.1
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/spos-client/resource.rb +11 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44debe434205049c3ad0b06f661e4f65830d927a
|
|
4
|
+
data.tar.gz: a69621eecbbb0a9b8854cee60f1af337d6070dd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d14357a865f4b9bfc2cf235537f8644f97642712cf959b3bfdb60a647aed5ba498e29b4fa465ac8636c8d1b2ae353bc1b92e1f9269e8054acd0db07c73a2e703
|
|
7
|
+
data.tar.gz: 2c7926756cfccde6ef344fab6129c75e72b48efa707961b688c7e8f6655999a7b88fa75f887ee7eb4d5fdb034ac4ee62897164db762733b2b8def94cdc6f75cb
|
data/lib/spos-client/resource.rb
CHANGED
|
@@ -6,12 +6,19 @@ class Resource
|
|
|
6
6
|
|
|
7
7
|
def get(id = nil)
|
|
8
8
|
if(id != nil)
|
|
9
|
-
|
|
9
|
+
getById(id)
|
|
10
10
|
else
|
|
11
|
-
|
|
11
|
+
getMany
|
|
12
12
|
end
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def getById(id, filled = false)
|
|
16
|
+
fill = filled ? "/filled" : ""
|
|
17
|
+
@client.request("#{@endpoint}/#{id}#{fill}")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def getMany()
|
|
21
|
+
@client.request(@endpoint)
|
|
15
22
|
end
|
|
16
23
|
|
|
17
24
|
def save(body)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spos-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shayne Martin
|
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2016-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: Simple
|
|
13
|
+
description: Simple Ruby bindings for your Spark Pay Online Store REST API
|
|
14
14
|
email: shayne.martin@capitalone.com
|
|
15
15
|
executables: []
|
|
16
16
|
extensions: []
|
|
@@ -42,5 +42,5 @@ rubyforge_project:
|
|
|
42
42
|
rubygems_version: 2.0.14.1
|
|
43
43
|
signing_key:
|
|
44
44
|
specification_version: 4
|
|
45
|
-
summary: Simple
|
|
45
|
+
summary: Simple Ruby bindings for your Spark Pay Online Store REST API
|
|
46
46
|
test_files: []
|