lancerkit 1.0.0 → 1.0.2
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/lancerkit.rb +6 -6
- 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: f305596338d37cd9aef0926170f1a1f654244c3699fccf712f390d288304b5cc
|
4
|
+
data.tar.gz: db6d0e0ce1f6a52535ca39112b2e6eae5b084a29443d3cf96cbd974e8236db33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969d0955632c86798a6bc380c5996b6b2b929589bc2c2ee8e17de4bf7f5d4a00d726ec52586ce1a45afa91d2b5c6b3f0bc0aaff2abbe1d4dcb06626e2f34b11a
|
7
|
+
data.tar.gz: 7b2ae978b195f3cfbc735164fa324e8a99ae71239125dfb950574c99f8028bcd1622768682987c49750c41c8cd93e4396c3c578715b67f9a1d304a9c13f4f07a
|
data/lib/lancerkit.rb
CHANGED
@@ -7,15 +7,15 @@ class Lancerkit
|
|
7
7
|
@api_key = api_key
|
8
8
|
end
|
9
9
|
|
10
|
-
def list_documents(sort='-date', page=
|
10
|
+
def list_documents(sort='-date', page=1)
|
11
11
|
HTTParty.get(HOST + "/documents", {query: {sort:sort, page: page}, headers: {authorization: @api_key}})
|
12
12
|
end
|
13
13
|
|
14
|
-
def list_contacts(sort='-date', page=
|
14
|
+
def list_contacts(sort='-date', page=1)
|
15
15
|
HTTParty.get(HOST + "/contacts", {query: {sort:sort, page: page}, headers: {authorization: @api_key}})
|
16
16
|
end
|
17
17
|
|
18
|
-
def list_transactions(sort='-date', page=
|
18
|
+
def list_transactions(sort='-date', page=1)
|
19
19
|
HTTParty.get(HOST + "/transactions", {query: {sort:sort, page: page}, headers: {authorization: @api_key}})
|
20
20
|
end
|
21
21
|
|
@@ -27,15 +27,15 @@ class Lancerkit
|
|
27
27
|
self.edit_contact('new', data)
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def edit_document(id, data)
|
31
31
|
HTTParty.get(HOST + "/documents/#{id}", {body: data.to_json, headers: {authorization: @api_key, 'Content-Type': 'application/json'}})
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
34
|
+
def edit_contact(id, data)
|
35
35
|
HTTParty.get(HOST + "/contacts/#{id}", {body: data.to_json, headers: {authorization: @api_key, 'Content-Type': 'application/json'}})
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
38
|
+
def edit_transaction(id, data)
|
39
39
|
HTTParty.get(HOST + "/transactions/#{id}", {body: data.to_json, headers: {authorization: @api_key, 'Content-Type': 'application/json'}})
|
40
40
|
end
|
41
41
|
|