metatron_ruby_client 0.1.1 → 0.1.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/README.md +5 -5
- data/config.json +1 -1
- data/docs/ManifestationResultSet.md +1 -0
- data/lib/metatron_ruby_client/models/manifestation_result_set.rb +31 -4
- data/lib/metatron_ruby_client/version.rb +1 -1
- data/metatron_ruby_client-0.1.1.gem +0 -0
- data/spec/models/manifestation_result_set_spec.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 019daee9f5d88b8220f0f6bb0d62e5e6157ce4b9
|
4
|
+
data.tar.gz: d58440d13b4db61ec8acb6480dc3d7d2545c3762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab81e4b164d8bdf9c09d845f4f8ada1ee1c7f3375c8b04f73d768dfcd76881146cd596ca37c45a29704554780d4700f299fcc858bd0f5e106a411427f8e95dd3
|
7
|
+
data.tar.gz: 180d7acd60b77e94f1b3716da83ea84969236308ac0e206ce222f60e6ab5e85b76e14af77004de7bbbf811a9975c592fb52ca80c4100a16dafcd943989f5b301
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ A primitive modelling bibliographic metadata
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 0.
|
11
|
-
- Build date: 2016-08-
|
10
|
+
- Package version: 0.1.2
|
11
|
+
- Build date: 2016-08-26T14:13:28.243-04:00
|
12
12
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
13
|
|
14
14
|
## Installation
|
@@ -24,15 +24,15 @@ gem build metatron_ruby_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./metatron_ruby_client-0.
|
27
|
+
gem install ./metatron_ruby_client-0.1.2.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./metatron_ruby_client-0.
|
29
|
+
(for development, run `gem install --dev ./metatron_ruby_client-0.1.2.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'metatron_ruby_client', '~> 0.
|
35
|
+
gem 'metatron_ruby_client', '~> 0.1.2'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
data/config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"gemName": "metatron_ruby_client",
|
3
3
|
"moduleName": "MetatronClient",
|
4
|
-
"gemVersion": "0.1.
|
4
|
+
"gemVersion": "0.1.2",
|
5
5
|
"gemLicense": "Copyright Talis Education Ltd",
|
6
6
|
"gemHomepage": "https://github.com/talis/metatron_rb",
|
7
7
|
"gemSummary": "A ruby API wrapper for Metatron",
|
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**links** | [**Links**](Links.md) | |
|
7
7
|
**meta** | [**ResultSetMeta**](ResultSetMeta.md) | |
|
8
8
|
**data** | [**Array<ManifestationData>**](ManifestationData.md) | |
|
9
|
+
**included** | [**Array<ResourceData>**](ResourceData.md) | | [optional]
|
9
10
|
|
10
11
|
|
@@ -20,6 +20,8 @@ module MetatronClient
|
|
20
20
|
|
21
21
|
attr_accessor :data
|
22
22
|
|
23
|
+
attr_accessor :included
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
@@ -28,7 +30,9 @@ module MetatronClient
|
|
28
30
|
|
29
31
|
:'meta' => :'meta',
|
30
32
|
|
31
|
-
:'data' => :'data'
|
33
|
+
:'data' => :'data',
|
34
|
+
|
35
|
+
:'included' => :'included'
|
32
36
|
|
33
37
|
}
|
34
38
|
end
|
@@ -41,7 +45,9 @@ module MetatronClient
|
|
41
45
|
|
42
46
|
:'meta' => :'ResultSetMeta',
|
43
47
|
|
44
|
-
:'data' => :'Array<ManifestationData>'
|
48
|
+
:'data' => :'Array<ManifestationData>',
|
49
|
+
|
50
|
+
:'included' => :'Array<ResourceData>'
|
45
51
|
|
46
52
|
}
|
47
53
|
end
|
@@ -84,6 +90,17 @@ module MetatronClient
|
|
84
90
|
end
|
85
91
|
|
86
92
|
|
93
|
+
if attributes.has_key?(:'included')
|
94
|
+
|
95
|
+
if (value = attributes[:'included']).is_a?(Array)
|
96
|
+
self.included = value
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
|
87
104
|
end
|
88
105
|
|
89
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,6 +143,10 @@ module MetatronClient
|
|
126
143
|
|
127
144
|
|
128
145
|
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
129
150
|
end
|
130
151
|
|
131
152
|
|
@@ -142,6 +163,11 @@ module MetatronClient
|
|
142
163
|
|
143
164
|
|
144
165
|
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
145
171
|
|
146
172
|
|
147
173
|
# Checks equality by comparing each attribute.
|
@@ -151,7 +177,8 @@ module MetatronClient
|
|
151
177
|
self.class == o.class &&
|
152
178
|
links == o.links &&
|
153
179
|
meta == o.meta &&
|
154
|
-
data == o.data
|
180
|
+
data == o.data &&
|
181
|
+
included == o.included
|
155
182
|
end
|
156
183
|
|
157
184
|
# @see the `==` method
|
@@ -163,7 +190,7 @@ module MetatronClient
|
|
163
190
|
# Calculates hash code according to all attributes.
|
164
191
|
# @return [Fixnum] Hash code
|
165
192
|
def hash
|
166
|
-
[links, meta, data].hash
|
193
|
+
[links, meta, data, included].hash
|
167
194
|
end
|
168
195
|
|
169
196
|
# Builds the object from hash
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metatron_ruby_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Singer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -268,6 +268,7 @@ files:
|
|
268
268
|
- lib/metatron_ruby_client/models/work_result_set.rb
|
269
269
|
- lib/metatron_ruby_client/version.rb
|
270
270
|
- metatron_ruby_client-0.0.1.gem
|
271
|
+
- metatron_ruby_client-0.1.1.gem
|
271
272
|
- metatron_ruby_client.gemspec
|
272
273
|
- spec/api/default_api_spec.rb
|
273
274
|
- spec/models/asset_attributes_spec.rb
|