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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spos-client/resource.rb +11 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96cc4174aca1da90506c8bdabb2e0cd5a2da7428
4
- data.tar.gz: 85b0272caa62feed405d7d687aa3525b259b073c
3
+ metadata.gz: 44debe434205049c3ad0b06f661e4f65830d927a
4
+ data.tar.gz: a69621eecbbb0a9b8854cee60f1af337d6070dd0
5
5
  SHA512:
6
- metadata.gz: a8d5a0ecc0429f57f2a1479a3ffd420e6ddc917baf3cf7e49c6d90448869dff039e0d5152fc301a86fb1325b80a7b2915db63350706e18120532e8af16cc761a
7
- data.tar.gz: 984c96769787b5781b2afa26988017b1f3626a4928c23f634f91f55e9c13279612cec3eece74f74cdd08377923e0f6494cf3f188d64756e2bed847ef02f464ed
6
+ metadata.gz: d14357a865f4b9bfc2cf235537f8644f97642712cf959b3bfdb60a647aed5ba498e29b4fa465ac8636c8d1b2ae353bc1b92e1f9269e8054acd0db07c73a2e703
7
+ data.tar.gz: 2c7926756cfccde6ef344fab6129c75e72b48efa707961b688c7e8f6655999a7b88fa75f887ee7eb4d5fdb034ac4ee62897164db762733b2b8def94cdc6f75cb
@@ -6,12 +6,19 @@ class Resource
6
6
 
7
7
  def get(id = nil)
8
8
  if(id != nil)
9
- path = "#{@endpoint}/#{id}"
9
+ getById(id)
10
10
  else
11
- path = @endpoint
11
+ getMany
12
12
  end
13
-
14
- @client.request(path)
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.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 RUby bindings for your Spark Pay Online Store REST API
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 RUby bindings for your Spark Pay Online Store REST API
45
+ summary: Simple Ruby bindings for your Spark Pay Online Store REST API
46
46
  test_files: []