blueprint_ruby_client 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 356d850858d04c2b38d91842225b122dfa80530d
4
- data.tar.gz: 8fa9b7ef19f2e3e3548542ef30bc5ebe51188e68
3
+ metadata.gz: 7fd4fffd6bb7661f4e6774192d3f6c0ca41f233c
4
+ data.tar.gz: 763c902e1edfbe4030c80a2d52799d8f464b98e8
5
5
  SHA512:
6
- metadata.gz: 5977564f83f6e69c64f7db896566b1218aca7d90ec17494a5dc332811f3ff7139c8587b660f7713f0a89ed5358b259f838d357b881470cba96b9a9b192210c2c
7
- data.tar.gz: c7642904d78cf13c13b6d20ecb1c1bc55f1750f91d7e8ace142f90fbf646a771039a20776467e0f1521c266ef7f021b9cbaffaa9e4e4e1be09e577da99517e28
6
+ metadata.gz: 70a75df7a26b535928803e330544508b6673fed069aa6feb05fa7a706b7b42817dd9819e15485117ee039db5e4aa1e77f1b7ffa1d0dfd171dd262b64c5726402
7
+ data.tar.gz: 07996f683e8fd77a6065a8f62b8dc76df132b9acdde66b1eda4c3752feda53d4a1b92c7cc2781d00c9f2252d6c700903db6f6d7708d874df7c537548cc9a2cd4
data/README.md CHANGED
@@ -7,8 +7,8 @@ This is the API documentation for [Blueprint](https://github.com/talis/blueprint
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: 1.0.0
10
- - Package version: 0.2.0
11
- - Build date: 2016-05-13T09:15:28.794+01:00
10
+ - Package version: 0.3.0
11
+ - Build date: 2016-05-31T15:05:29.982-04:00
12
12
  - Build package: class io.swagger.codegen.languages.RubyClientCodegen
13
13
 
14
14
  ## Installation
@@ -34,15 +34,15 @@ gem build blueprint_ruby_client.gemspec
34
34
  Then either install the gem locally:
35
35
 
36
36
  ```shell
37
- gem install ./blueprint_ruby_client-0.2.0.gem
37
+ gem install ./blueprint_ruby_client-0.3.0.gem
38
38
  ```
39
- (for development, run `gem install --dev ./blueprint_ruby_client-0.2.0.gem` to install the development dependencies)
39
+ (for development, run `gem install --dev ./blueprint_ruby_client-0.3.0.gem` to install the development dependencies)
40
40
 
41
41
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
42
42
 
43
43
  Finally add this to the Gemfile:
44
44
 
45
- gem 'blueprint_ruby_client', '~> 0.2.0'
45
+ gem 'blueprint_ruby_client', '~> 0.3.0'
46
46
 
47
47
  ### Install from Git
48
48
 
@@ -124,6 +124,7 @@ Class | Method | HTTP request | Description
124
124
  - [BlueprintClient::Asset](docs/Asset.md)
125
125
  - [BlueprintClient::AssetAttributes](docs/AssetAttributes.md)
126
126
  - [BlueprintClient::AssetBody](docs/AssetBody.md)
127
+ - [BlueprintClient::AssetRelationship](docs/AssetRelationship.md)
127
128
  - [BlueprintClient::AssetResultSet](docs/AssetResultSet.md)
128
129
  - [BlueprintClient::Error](docs/Error.md)
129
130
  - [BlueprintClient::Errors](docs/Errors.md)
data/config.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "gemName": "blueprint_ruby_client",
3
3
  "moduleName": "BlueprintClient",
4
- "gemVersion": "0.2.0",
4
+ "gemVersion": "0.3.0",
5
5
  "gemLicense": "Copyright Talis Education Ltd",
6
6
  "gemHomepage": "https://github.com/talis/blueprint_rb",
7
7
  "gemSummary": "A ruby API wrapper for Blueprint",
@@ -0,0 +1,10 @@
1
+ # BlueprintClient::AssetRelationship
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **meta** | [**Meta**](Meta.md) | | [optional]
7
+ **links** | [**Links**](Links.md) | | [optional]
8
+ **data** | [**Array<Asset>**](Asset.md) | | [optional]
9
+
10
+
data/docs/HierarchyApi.md CHANGED
@@ -640,7 +640,12 @@ opts = {
640
640
  filter_has_assets: true, # BOOLEAN | limit to either nodes that have assets (true) nodes that have no assets (false) or omit to consider both nodes with and without assets
641
641
  filter_asset_type: ["filter_asset_type_example"], # Array<String> | type of asset to return
642
642
  filter_from: Date.parse("2013-10-20"), # Date | limit to results valid after this date, format is ISO8601 date
643
- filter_to: Date.parse("2013-10-20") # Date | limit to results valid before this date, format is ISO8601
643
+ filter_to: Date.parse("2013-10-20"), # Date | limit to results valid before this date, format is ISO8601
644
+ q_node: "q_node_example", # String | query term(s) to search for nodes. Allows wildcard searching with '*'
645
+ q_child: "q_child_example", # String | query id/title terms to search for child nodes. Allows wildcard searching with '*'
646
+ q_parent: "q_parent_example", # String | query id/title terms to search for parent nodes. Allows wildcard searching with '*'
647
+ q_descendant: "q_descendant_example", # String | query id/title terms to search for descendant nodes. Allows wildcard searching with '*'
648
+ q_ancestor: "q_ancestor_example" # String | query id/title terms to search for ancestor nodes. Allows wildcard searching with '*'
644
649
  }
645
650
 
646
651
  begin
@@ -669,6 +674,11 @@ Name | Type | Description | Notes
669
674
  **filter_asset_type** | [**Array&lt;String&gt;**](String.md)| type of asset to return | [optional]
670
675
  **filter_from** | **Date**| limit to results valid after this date, format is ISO8601 date | [optional]
671
676
  **filter_to** | **Date**| limit to results valid before this date, format is ISO8601 | [optional]
677
+ **q_node** | **String**| query term(s) to search for nodes. Allows wildcard searching with &#39;*&#39; | [optional]
678
+ **q_child** | **String**| query id/title terms to search for child nodes. Allows wildcard searching with &#39;*&#39; | [optional]
679
+ **q_parent** | **String**| query id/title terms to search for parent nodes. Allows wildcard searching with &#39;*&#39; | [optional]
680
+ **q_descendant** | **String**| query id/title terms to search for descendant nodes. Allows wildcard searching with &#39;*&#39; | [optional]
681
+ **q_ancestor** | **String**| query id/title terms to search for ancestor nodes. Allows wildcard searching with &#39;*&#39; | [optional]
672
682
 
673
683
  ### Return type
674
684
 
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **children** | [**NodeRelationship**](NodeRelationship.md) | | [optional]
7
7
  **parents** | [**NodeRelationship**](NodeRelationship.md) | | [optional]
8
+ **assets** | [**AssetRelationship**](AssetRelationship.md) | | [optional]
8
9
  **namespace** | [**NamespaceRelationship**](NamespaceRelationship.md) | | [optional]
9
10
 
10
11
 
@@ -20,6 +20,7 @@ require 'blueprint_ruby_client/configuration'
20
20
  require 'blueprint_ruby_client/models/asset'
21
21
  require 'blueprint_ruby_client/models/asset_attributes'
22
22
  require 'blueprint_ruby_client/models/asset_body'
23
+ require 'blueprint_ruby_client/models/asset_relationship'
23
24
  require 'blueprint_ruby_client/models/asset_result_set'
24
25
  require 'blueprint_ruby_client/models/error'
25
26
  require 'blueprint_ruby_client/models/errors'
@@ -924,6 +924,11 @@ module BlueprintClient
924
924
  # @option opts [Array<String>] :filter_asset_type type of asset to return
925
925
  # @option opts [Date] :filter_from limit to results valid after this date, format is ISO8601 date
926
926
  # @option opts [Date] :filter_to limit to results valid before this date, format is ISO8601
927
+ # @option opts [String] :q_node query term(s) to search for nodes. Allows wildcard searching with &#39;*&#39;
928
+ # @option opts [String] :q_child query id/title terms to search for child nodes. Allows wildcard searching with &#39;*&#39;
929
+ # @option opts [String] :q_parent query id/title terms to search for parent nodes. Allows wildcard searching with &#39;*&#39;
930
+ # @option opts [String] :q_descendant query id/title terms to search for descendant nodes. Allows wildcard searching with &#39;*&#39;
931
+ # @option opts [String] :q_ancestor query id/title terms to search for ancestor nodes. Allows wildcard searching with &#39;*&#39;
927
932
  # @return [NodeResultSet]
928
933
  def search_nodes(namespace_inc_global, opts = {})
929
934
  data, _status_code, _headers = search_nodes_with_http_info(namespace_inc_global, opts)
@@ -946,6 +951,11 @@ module BlueprintClient
946
951
  # @option opts [Array<String>] :filter_asset_type type of asset to return
947
952
  # @option opts [Date] :filter_from limit to results valid after this date, format is ISO8601 date
948
953
  # @option opts [Date] :filter_to limit to results valid before this date, format is ISO8601
954
+ # @option opts [String] :q_node query term(s) to search for nodes. Allows wildcard searching with &#39;*&#39;
955
+ # @option opts [String] :q_child query id/title terms to search for child nodes. Allows wildcard searching with &#39;*&#39;
956
+ # @option opts [String] :q_parent query id/title terms to search for parent nodes. Allows wildcard searching with &#39;*&#39;
957
+ # @option opts [String] :q_descendant query id/title terms to search for descendant nodes. Allows wildcard searching with &#39;*&#39;
958
+ # @option opts [String] :q_ancestor query id/title terms to search for ancestor nodes. Allows wildcard searching with &#39;*&#39;
949
959
  # @return [Array<(NodeResultSet, Fixnum, Hash)>] NodeResultSet data, response status code and response headers
950
960
  def search_nodes_with_http_info(namespace_inc_global, opts = {})
951
961
  if @api_client.config.debugging
@@ -1011,6 +1021,36 @@ module BlueprintClient
1011
1021
 
1012
1022
 
1013
1023
 
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1014
1054
 
1015
1055
 
1016
1056
 
@@ -1049,6 +1089,11 @@ module BlueprintClient
1049
1089
  query_params[:'filter[assetType]'] = @api_client.build_collection_param(opts[:'filter_asset_type'], :csv) if opts[:'filter_asset_type']
1050
1090
  query_params[:'filter[from]'] = opts[:'filter_from'] if opts[:'filter_from']
1051
1091
  query_params[:'filter[to]'] = opts[:'filter_to'] if opts[:'filter_to']
1092
+ query_params[:'q[node]'] = opts[:'q_node'] if opts[:'q_node']
1093
+ query_params[:'q[child]'] = opts[:'q_child'] if opts[:'q_child']
1094
+ query_params[:'q[parent]'] = opts[:'q_parent'] if opts[:'q_parent']
1095
+ query_params[:'q[descendant]'] = opts[:'q_descendant'] if opts[:'q_descendant']
1096
+ query_params[:'q[ancestor]'] = opts[:'q_ancestor'] if opts[:'q_ancestor']
1052
1097
 
1053
1098
  # header parameters
1054
1099
  header_params = {}
@@ -0,0 +1,259 @@
1
+ =begin
2
+ Talis Blueprint API
3
+
4
+ This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module BlueprintClient
16
+ class AssetRelationship
17
+ attr_accessor :meta
18
+
19
+ attr_accessor :links
20
+
21
+ attr_accessor :data
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+
27
+ :'meta' => :'meta',
28
+
29
+ :'links' => :'links',
30
+
31
+ :'data' => :'data'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+
40
+ :'meta' => :'Meta',
41
+
42
+ :'links' => :'Links',
43
+
44
+ :'data' => :'Array<Asset>'
45
+
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+
57
+
58
+ if attributes.has_key?(:'meta')
59
+
60
+
61
+ self.meta = attributes[:'meta']
62
+
63
+
64
+ end
65
+
66
+
67
+ if attributes.has_key?(:'links')
68
+
69
+
70
+ self.links = attributes[:'links']
71
+
72
+
73
+ end
74
+
75
+
76
+ if attributes.has_key?(:'data')
77
+
78
+ if (value = attributes[:'data']).is_a?(Array)
79
+ self.data = value
80
+ end
81
+
82
+
83
+
84
+ end
85
+
86
+
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properies with the reasons
91
+ def list_invalid_properties
92
+ invalid_properties = Array.new
93
+
94
+
95
+ return invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ end
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ meta == o.meta &&
138
+ links == o.links &&
139
+ data == o.data
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Fixnum] Hash code
150
+ def hash
151
+ [meta, links, data].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ if type =~ /^Array<(.*)>/i
161
+ # check to ensure the input is an array given that the the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
164
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def _deserialize(type, value)
179
+ case type.to_sym
180
+ when :DateTime
181
+ DateTime.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :BOOLEAN
191
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ temp_model = BlueprintClient.const_get(type).new
212
+ temp_model.build_from_hash(value)
213
+ end
214
+ end
215
+
216
+ # Returns the string representation of the object
217
+ # @return [String] String presentation of the object
218
+ def to_s
219
+ to_hash.to_s
220
+ end
221
+
222
+ # to_body is an alias to to_hash (backward compatibility)
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_body
225
+ to_hash
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ next if value.nil?
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map{ |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+ end
@@ -18,6 +18,8 @@ module BlueprintClient
18
18
 
19
19
  attr_accessor :parents
20
20
 
21
+ attr_accessor :assets
22
+
21
23
  attr_accessor :namespace
22
24
 
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -28,6 +30,8 @@ module BlueprintClient
28
30
 
29
31
  :'parents' => :'parents',
30
32
 
33
+ :'assets' => :'assets',
34
+
31
35
  :'namespace' => :'namespace'
32
36
 
33
37
  }
@@ -41,6 +45,8 @@ module BlueprintClient
41
45
 
42
46
  :'parents' => :'NodeRelationship',
43
47
 
48
+ :'assets' => :'AssetRelationship',
49
+
44
50
  :'namespace' => :'NamespaceRelationship'
45
51
 
46
52
  }
@@ -73,6 +79,15 @@ module BlueprintClient
73
79
  end
74
80
 
75
81
 
82
+ if attributes.has_key?(:'assets')
83
+
84
+
85
+ self.assets = attributes[:'assets']
86
+
87
+
88
+ end
89
+
90
+
76
91
  if attributes.has_key?(:'namespace')
77
92
 
78
93
 
@@ -109,6 +124,10 @@ module BlueprintClient
109
124
 
110
125
 
111
126
 
127
+
128
+
129
+
130
+
112
131
  end
113
132
 
114
133
 
@@ -125,6 +144,11 @@ module BlueprintClient
125
144
 
126
145
 
127
146
 
147
+
148
+
149
+
150
+
151
+
128
152
 
129
153
 
130
154
  # Checks equality by comparing each attribute.
@@ -134,6 +158,7 @@ module BlueprintClient
134
158
  self.class == o.class &&
135
159
  children == o.children &&
136
160
  parents == o.parents &&
161
+ assets == o.assets &&
137
162
  namespace == o.namespace
138
163
  end
139
164
 
@@ -146,7 +171,7 @@ module BlueprintClient
146
171
  # Calculates hash code according to all attributes.
147
172
  # @return [Fixnum] Hash code
148
173
  def hash
149
- [children, parents, namespace].hash
174
+ [children, parents, assets, namespace].hash
150
175
  end
151
176
 
152
177
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  =end
12
12
 
13
13
  module BlueprintClient
14
- VERSION = "0.2.0"
14
+ VERSION = "0.3.0"
15
15
  end
@@ -234,6 +234,11 @@ describe 'HierarchyApi' do
234
234
  # @option opts [Array<String>] :filter_asset_type type of asset to return
235
235
  # @option opts [Date] :filter_from limit to results valid after this date, format is ISO8601 date
236
236
  # @option opts [Date] :filter_to limit to results valid before this date, format is ISO8601
237
+ # @option opts [String] :q_node query term(s) to search for nodes. Allows wildcard searching with &#39;*&#39;
238
+ # @option opts [String] :q_child query id/title terms to search for child nodes. Allows wildcard searching with &#39;*&#39;
239
+ # @option opts [String] :q_parent query id/title terms to search for parent nodes. Allows wildcard searching with &#39;*&#39;
240
+ # @option opts [String] :q_descendant query id/title terms to search for descendant nodes. Allows wildcard searching with &#39;*&#39;
241
+ # @option opts [String] :q_ancestor query id/title terms to search for ancestor nodes. Allows wildcard searching with &#39;*&#39;
237
242
  # @return [NodeResultSet]
238
243
  describe 'search_nodes test' do
239
244
  it "should work" do
@@ -0,0 +1,66 @@
1
+ =begin
2
+ Talis Blueprint API
3
+
4
+ This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for BlueprintClient::AssetRelationship
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'AssetRelationship' do
21
+ before do
22
+ # run before each test
23
+ @instance = BlueprintClient::AssetRelationship.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of AssetRelationship' do
31
+ it 'should create an instact of AssetRelationship' do
32
+ @instance.should be_a(BlueprintClient::AssetRelationship)
33
+ end
34
+ end
35
+ describe 'test attribute "meta"' do
36
+ it 'should work' do
37
+ # assertion here
38
+ # should be_a()
39
+ # should be_nil
40
+ # should ==
41
+ # should_not ==
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "links"' do
46
+ it 'should work' do
47
+ # assertion here
48
+ # should be_a()
49
+ # should be_nil
50
+ # should ==
51
+ # should_not ==
52
+ end
53
+ end
54
+
55
+ describe 'test attribute "data"' do
56
+ it 'should work' do
57
+ # assertion here
58
+ # should be_a()
59
+ # should be_nil
60
+ # should ==
61
+ # should_not ==
62
+ end
63
+ end
64
+
65
+ end
66
+
@@ -52,6 +52,16 @@ describe 'NodeRelationships' do
52
52
  end
53
53
  end
54
54
 
55
+ describe 'test attribute "assets"' do
56
+ it 'should work' do
57
+ # assertion here
58
+ # should be_a()
59
+ # should be_nil
60
+ # should ==
61
+ # should_not ==
62
+ end
63
+ end
64
+
55
65
  describe 'test attribute "namespace"' do
56
66
  it 'should work' do
57
67
  # assertion here
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprint_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Paddock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -204,6 +204,7 @@ files:
204
204
  - docs/Asset.md
205
205
  - docs/AssetAttributes.md
206
206
  - docs/AssetBody.md
207
+ - docs/AssetRelationship.md
207
208
  - docs/AssetResultSet.md
208
209
  - docs/AssetsApi.md
209
210
  - docs/Error.md
@@ -232,6 +233,7 @@ files:
232
233
  - lib/blueprint_ruby_client/models/asset.rb
233
234
  - lib/blueprint_ruby_client/models/asset_attributes.rb
234
235
  - lib/blueprint_ruby_client/models/asset_body.rb
236
+ - lib/blueprint_ruby_client/models/asset_relationship.rb
235
237
  - lib/blueprint_ruby_client/models/asset_result_set.rb
236
238
  - lib/blueprint_ruby_client/models/error.rb
237
239
  - lib/blueprint_ruby_client/models/errors.rb
@@ -252,6 +254,7 @@ files:
252
254
  - spec/api/hierarchy_api_spec.rb
253
255
  - spec/models/asset_attributes_spec.rb
254
256
  - spec/models/asset_body_spec.rb
257
+ - spec/models/asset_relationship_spec.rb
255
258
  - spec/models/asset_result_set_spec.rb
256
259
  - spec/models/asset_spec.rb
257
260
  - spec/models/error_spec.rb
@@ -306,29 +309,30 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
309
  version: '0'
307
310
  requirements: []
308
311
  rubyforge_project:
309
- rubygems_version: 2.4.8
312
+ rubygems_version: 2.4.5.1
310
313
  signing_key:
311
314
  specification_version: 4
312
315
  summary: A ruby API wrapper for Blueprint
313
316
  test_files:
314
317
  - spec/api/assets_api_spec.rb
315
318
  - spec/api/hierarchy_api_spec.rb
316
- - spec/models/namespace_relationship_spec.rb
317
- - spec/models/node_result_set_spec.rb
318
- - spec/models/node_spec.rb
319
319
  - spec/models/asset_attributes_spec.rb
320
320
  - spec/models/asset_body_spec.rb
321
- - spec/models/errors_spec.rb
321
+ - spec/models/asset_relationship_spec.rb
322
322
  - spec/models/asset_result_set_spec.rb
323
- - spec/models/resource_spec.rb
324
- - spec/models/node_relationship_spec.rb
323
+ - spec/models/asset_spec.rb
324
+ - spec/models/error_spec.rb
325
+ - spec/models/errors_spec.rb
325
326
  - spec/models/links_spec.rb
326
- - spec/models/node_body_spec.rb
327
- - spec/models/node_relationships_spec.rb
328
327
  - spec/models/meta_spec.rb
329
- - spec/models/error_spec.rb
330
- - spec/models/node_attributes_spec.rb
331
- - spec/models/namespace_spec.rb
332
328
  - spec/models/mixed_resource_result_set_spec.rb
333
- - spec/models/asset_spec.rb
329
+ - spec/models/namespace_relationship_spec.rb
330
+ - spec/models/namespace_spec.rb
331
+ - spec/models/node_attributes_spec.rb
332
+ - spec/models/node_body_spec.rb
333
+ - spec/models/node_relationship_spec.rb
334
+ - spec/models/node_relationships_spec.rb
335
+ - spec/models/node_result_set_spec.rb
336
+ - spec/models/node_spec.rb
337
+ - spec/models/resource_spec.rb
334
338
  has_rdoc: