affiliation-api-client 0.1.3 → 0.1.4
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/affiliation-api/merchant.rb +10 -1
- data/lib/affiliation-api/version.rb +1 -1
- 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: dd7dbf5ba415e0507bd1436b3e8e1237fa17776b
|
|
4
|
+
data.tar.gz: 7d518815c774d6764be5cba56c2f44f5b0b43971
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff077cf3d82e165b0cbee24e7993509f9fbc4d6fbaeb8796f4e36e0039121108313cfe5501ca77a3e69d4ea500d9a1920a1c2ed65a39634e3489655d15a1ed0c
|
|
7
|
+
data.tar.gz: 2b69b5f25df74305892cad2a0ddd45599a8bed4262e8a271b851170e7a0137bf4b8f3abfb3db1e57fadba1ecdccee66c5c1c4b0446ba712ff420606f5e2dd4c6
|
|
@@ -4,13 +4,22 @@ module AffiliationApi
|
|
|
4
4
|
:name,
|
|
5
5
|
:description,
|
|
6
6
|
:url,
|
|
7
|
+
:image,
|
|
7
8
|
:image_url,
|
|
8
9
|
:hidden,
|
|
9
|
-
:network_updated_at
|
|
10
|
+
:network_updated_at,
|
|
11
|
+
:categories,
|
|
12
|
+
:category_ids
|
|
10
13
|
|
|
11
14
|
def network_updated_at
|
|
12
15
|
return nil unless @network_updated_at.present?
|
|
13
16
|
Time.parse(@network_updated_at)
|
|
14
17
|
end
|
|
18
|
+
|
|
19
|
+
def categories
|
|
20
|
+
@categories['data'].map do |cat_data|
|
|
21
|
+
Category.new id: cat_data['id'], name: cat_data['name']
|
|
22
|
+
end
|
|
23
|
+
end
|
|
15
24
|
end
|
|
16
25
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: affiliation-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chaker Nakhli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: api-resource
|
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
version: '0'
|
|
120
120
|
requirements: []
|
|
121
121
|
rubyforge_project:
|
|
122
|
-
rubygems_version: 2.4.
|
|
122
|
+
rubygems_version: 2.4.8
|
|
123
123
|
signing_key:
|
|
124
124
|
specification_version: 4
|
|
125
125
|
summary: Programmatic API to access Wizypay's Affiliation Network API.
|