dock_genius_api_ruby_client 0.1.1.pre.gcf82e3 → 0.1.2.pre.ge30447
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/config.json +10 -0
- data/dg-api-gem/.git/HEAD +1 -0
- data/dg-api-gem/.git/config +13 -0
- data/dg-api-gem/.git/description +1 -0
- data/dg-api-gem/.git/hooks/applypatch-msg.sample +15 -0
- data/dg-api-gem/.git/hooks/commit-msg.sample +24 -0
- data/dg-api-gem/.git/hooks/post-update.sample +8 -0
- data/dg-api-gem/.git/hooks/pre-applypatch.sample +14 -0
- data/dg-api-gem/.git/hooks/pre-commit.sample +49 -0
- data/dg-api-gem/.git/hooks/pre-push.sample +53 -0
- data/dg-api-gem/.git/hooks/pre-rebase.sample +169 -0
- data/dg-api-gem/.git/hooks/prepare-commit-msg.sample +36 -0
- data/dg-api-gem/.git/hooks/update.sample +128 -0
- data/dg-api-gem/.git/index +0 -0
- data/dg-api-gem/.git/info/exclude +6 -0
- data/dg-api-gem/.git/logs/HEAD +1 -0
- data/dg-api-gem/.git/logs/refs/heads/master +1 -0
- data/dg-api-gem/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/dg-api-gem/.git/objects/00/0bf2136d3179234ddfecb13b26554f9e2f4c90 +0 -0
- data/dg-api-gem/.git/objects/03/251f753635b5302d85ffa2b7681623f1f21542 +0 -0
- data/dg-api-gem/.git/objects/0a/5c33a52fbb06520d06bbc5f4b124ed1a9528f6 +0 -0
- data/dg-api-gem/.git/objects/0f/7798223856c806d373ea8da2ecfb127ab097f4 +0 -0
- data/dg-api-gem/.git/objects/10/7ee96a08afe27a4dbe411d6b7ac7274c584dff +0 -0
- data/dg-api-gem/.git/objects/18/2ba7055e1aeb4216346152e66e65bddb4c0cf9 +2 -0
- data/dg-api-gem/.git/objects/19/1bf6a3c7f96f990c9d13c896a93f3c1d9f20c9 +0 -0
- data/dg-api-gem/.git/objects/19/b847fbc31f64ac4362d110c32fe9bbac30b096 +0 -0
- data/dg-api-gem/.git/objects/1a/825f63ae485ff56b4faf701ba522bcc0561f78 +3 -0
- data/dg-api-gem/.git/objects/1d/691d2d0dbb43d184a96fa3cdb1d3c00a1f4f38 +0 -0
- data/dg-api-gem/.git/objects/23/9dbff8bc51ff15a56d0faa3c02e63fed5fcb2c +0 -0
- data/dg-api-gem/.git/objects/26/3386d2358171da7acc57031821ab5f4d05f2b2 +0 -0
- data/dg-api-gem/.git/objects/2e/c238e03b0fe3c4de9a778eae988047d90adedb +0 -0
- data/dg-api-gem/.git/objects/36/1530690b4e5068a46af4e84ffcffcc05fdc4e9 +0 -0
- data/dg-api-gem/.git/objects/39/851c468e61c40e98dd367a58130bf03da54049 +0 -0
- data/dg-api-gem/.git/objects/3a/1638bae7dad86132067c651430a23e0bd00e94 +0 -0
- data/dg-api-gem/.git/objects/3f/dd745b1670cfd8137ed8d9601576c4c55011ca +0 -0
- data/dg-api-gem/.git/objects/40/7a612dc315ab5a363898a2f26c5f40406509c3 +0 -0
- data/dg-api-gem/.git/objects/44/b1fa84f3fdb596e5aa3be4842fafa6d4265007 +4 -0
- data/dg-api-gem/.git/objects/45/3cc136420e8bf8c26ad9a87676e684d011ff8f +2 -0
- data/dg-api-gem/.git/objects/4a/ac7c8a0faa701839f79f09f55a7d1087973b2a +0 -0
- data/dg-api-gem/.git/objects/4d/389bcc61ad278452415941088a4b5dce2d9e0d +0 -0
- data/dg-api-gem/.git/objects/52/2134fcdd3a3416faa5a8d1f1d7cf7eed7614a6 +0 -0
- data/dg-api-gem/.git/objects/53/e744e7af409f7e3dbbd67104da92c4fb0af2cd +0 -0
- data/dg-api-gem/.git/objects/59/832d27043d158a93887128fa62d436e6baf984 +0 -0
- data/dg-api-gem/.git/objects/63/965c44c0baa07e6398ed661798c4cdab144a51 +0 -0
- data/dg-api-gem/.git/objects/67/0889ef241c30f1eaa968ce274bb30c4ef2c04a +0 -0
- data/dg-api-gem/.git/objects/6e/8ed714c65008dbe2d96f1c7c95701ec628687d +0 -0
- data/dg-api-gem/.git/objects/7c/5ec222d1a0d401230d65a4f4c95932b6a4b103 +0 -0
- data/dg-api-gem/.git/objects/7d/e4768355b175138f4f328f538172371ff899b1 +0 -0
- data/dg-api-gem/.git/objects/7e/44b9aade1a985405320127e7b8c87731e2eb47 +0 -0
- data/dg-api-gem/.git/objects/83/e16f80447460c937aeaa44a64d743b27863077 +0 -0
- data/dg-api-gem/.git/objects/84/c03b075cc3e55d7c9c7a6408a479a432177ca1 +0 -0
- data/dg-api-gem/.git/objects/86/b79fcbf184cf40d3762feaa411e60971c9e4e3 +0 -0
- data/dg-api-gem/.git/objects/87/7efadd49fbd5ceeaa984d04ace0ff9929e544d +0 -0
- data/dg-api-gem/.git/objects/89/6ed529d66fa93deb04e710c6783813865b6c9a +0 -0
- data/dg-api-gem/.git/objects/8d/ada3edaf50dbc082c9a125058f25def75e625a +0 -0
- data/dg-api-gem/.git/objects/8e/d5d3491bfa2cba6c326f7c4c39e7ae3ac293fd +0 -0
- data/dg-api-gem/.git/objects/8f/a369451059baeee34e63568bdf97fa6649b417 +0 -0
- data/dg-api-gem/.git/objects/90/0bf41963dbe86e075fb6b2faa712ff54f06b31 +0 -0
- data/dg-api-gem/.git/objects/9b/5962c43f3c1628136292953e48ade70023fad1 +0 -0
- data/dg-api-gem/.git/objects/9c/3aa7b315f9f3501dbf48e049d87edaa4adfa7a +0 -0
- data/dg-api-gem/.git/objects/9e/22e96e9a55c296ac7111f034728eb06138985a +0 -0
- data/dg-api-gem/.git/objects/a0/1e0717b62bac403347a6de50cdbbfc7d00807e +0 -0
- data/dg-api-gem/.git/objects/a7/1cc8489d2347a27ea0f9e16f515394cbc13e0d +0 -0
- data/dg-api-gem/.git/objects/a8/4b30dba8dab3b105c6f730e46e4b75c25dfbcc +0 -0
- data/dg-api-gem/.git/objects/ab/a4ce8ed5919657e2645381b0b7ef9249f53fe1 +3 -0
- data/dg-api-gem/.git/objects/ac/398d23b9a339730fc96b080f971ac907c7182e +0 -0
- data/dg-api-gem/.git/objects/b0/a30dc2224d9fe5a8e2f676564df60d969d6d4e +0 -0
- data/dg-api-gem/.git/objects/b1/4d886e6905ad18c7c760475534846b3834c932 +0 -0
- data/dg-api-gem/.git/objects/b4/367529bfbbd23d20fd7288ab76af25069d7be7 +0 -0
- data/dg-api-gem/.git/objects/b5/f9c09bc0be51297f7e5eba90e95589467ed2ca +0 -0
- data/dg-api-gem/.git/objects/b5/fdfa522d17775e3341e8d233e8e4f55251808b +5 -0
- data/dg-api-gem/.git/objects/bd/0b6f2d0c50fcf68aa3d43d0562514ed7c11839 +0 -0
- data/dg-api-gem/.git/objects/c5/021ce290feadd7ddb909b63666817ea783870b +0 -0
- data/dg-api-gem/.git/objects/c5/fa491b4c557bf997d5dd21797de782545dc9e5 +0 -0
- data/dg-api-gem/.git/objects/c6/64a5c35f3b1cf84fc1cfb022636e53c87f49a9 +0 -0
- data/dg-api-gem/.git/objects/ca/5c84f7caed579535ec2ebb73ceacdf041290d8 +0 -0
- data/dg-api-gem/.git/objects/ca/838f54c26c102dae6df4ef6c1beeebac477596 +0 -0
- data/dg-api-gem/.git/objects/d3/8f460818b162c188f9636fffe6f6a157fbc095 +0 -0
- data/dg-api-gem/.git/objects/dc/8e7a8f5fba4cca72485aa7a1028987ef59c031 +0 -0
- data/dg-api-gem/.git/objects/dd/d925f300d40fcf0cbf2b59f4b11ccb730d4864 +0 -0
- data/dg-api-gem/.git/objects/df/1709db06c3bea79dee47248616a7f567afa30a +0 -0
- data/dg-api-gem/.git/objects/e1/9985758c5d7a2b54e202f423037f2a6b604ce5 +0 -0
- data/dg-api-gem/.git/objects/e8/45e5428feb9d46ae1e008ac949956899959d11 +0 -0
- data/dg-api-gem/.git/objects/ec/f75a817b10d82816a6d63748ebc5b72998cefa +0 -0
- data/dg-api-gem/.git/objects/f0/c34e8b8e645810912715da0e2bde549714076b +0 -0
- data/dg-api-gem/.git/objects/f5/86703d84a4a48f2e867b60438f62c2b0d9bbfb +0 -0
- data/dg-api-gem/.git/objects/fb/f7ae21827a758fd71109af06f5ec641dd235d7 +0 -0
- data/dg-api-gem/.git/objects/ff/f26559d7a990d7527cc4791b091a541df33dc4 +0 -0
- data/dg-api-gem/.git/packed-refs +2 -0
- data/dg-api-gem/.git/refs/heads/master +1 -0
- data/dg-api-gem/.git/refs/remotes/origin/HEAD +1 -0
- data/dg-api-gem/.gitignore +50 -0
- data/dg-api-gem/.rspec +2 -0
- data/dg-api-gem/.swagger-codegen-ignore +23 -0
- data/{LICENSE → dg-api-gem/LICENSE} +0 -0
- data/{README.md → dg-api-gem/README.md} +33 -5
- data/{dock_genius_api_ruby_client.gemspec → dg-api-gem/dock_genius_api_ruby_client.gemspec} +0 -0
- data/{docs → dg-api-gem/docs}/AccessToken.md +0 -0
- data/{docs → dg-api-gem/docs}/Address.md +0 -0
- data/{docs → dg-api-gem/docs}/Customer.md +0 -0
- data/{docs → dg-api-gem/docs}/CustomerApi.md +0 -0
- data/{docs → dg-api-gem/docs}/Dock.md +4 -3
- data/{docs → dg-api-gem/docs}/DockApi.md +345 -0
- data/{docs → dg-api-gem/docs}/EmailAddress.md +0 -0
- data/{docs → dg-api-gem/docs}/GeoPoint.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse200.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse2001.md +0 -0
- data/{docs → dg-api-gem/docs}/InlineResponse2002.md +0 -0
- data/{docs → dg-api-gem/docs}/ListingAgent.md +2 -1
- data/{docs → dg-api-gem/docs}/Marina.md +0 -0
- data/{docs → dg-api-gem/docs}/MarinaApi.md +0 -0
- data/dg-api-gem/docs/Parameter.md +11 -0
- data/dg-api-gem/docs/ParameterApi.md +437 -0
- data/dg-api-gem/docs/ParameterAssignment.md +10 -0
- data/{docs → dg-api-gem/docs}/Phone.md +0 -0
- data/dg-api-gem/docs/UnitOfMeasurement.md +10 -0
- data/dg-api-gem/docs/UnitOfMeasurementApi.md +437 -0
- data/{git_push.sh → dg-api-gem/git_push.sh} +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/customer_api.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/dock_api.rb +419 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api/marina_api.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/api/parameter_api.rb +548 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/api/unit_of_measurement_api.rb +548 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api_client.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/api_error.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/configuration.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/access_token.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/address.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/customer.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/dock.rb +20 -4
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/email_address.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/geo_point.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200_1.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/inline_response_200_2.rb +0 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/listing_agent.rb +12 -1
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/marina.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/parameter.rb +231 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/parameter_assignment.rb +218 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/models/phone.rb +0 -0
- data/dg-api-gem/lib/dock_genius_api_ruby_client/models/unit_of_measurement.rb +220 -0
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client/version.rb +1 -1
- data/{lib → dg-api-gem/lib}/dock_genius_api_ruby_client.rb +5 -0
- data/{spec → dg-api-gem/spec}/api/customer_api_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/api/dock_api_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/api/marina_api_spec.rb +0 -0
- data/dg-api-gem/spec/api/parameter_api_spec.rb +157 -0
- data/dg-api-gem/spec/api/unit_of_measurement_api_spec.rb +157 -0
- data/{spec → dg-api-gem/spec}/api_client_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/configuration_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/access_token_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/address_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/customer_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/dock_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/email_address_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/geo_point_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_1_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_2_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/inline_response_200_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/listing_agent_spec.rb +0 -0
- data/{spec → dg-api-gem/spec}/models/marina_spec.rb +0 -0
- data/dg-api-gem/spec/models/parameter_assignment_spec.rb +65 -0
- data/dg-api-gem/spec/models/parameter_spec.rb +71 -0
- data/{spec → dg-api-gem/spec}/models/phone_spec.rb +0 -0
- data/dg-api-gem/spec/models/unit_of_measurement_spec.rb +65 -0
- data/{spec → dg-api-gem/spec}/spec_helper.rb +0 -0
- data/swagger.yml +3075 -0
- metadata +170 -78
@@ -0,0 +1,220 @@
|
|
1
|
+
=begin
|
2
|
+
#DockGenius API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
|
+
Contact: hi@dockgenius.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'date'
|
25
|
+
|
26
|
+
module DockGeniusApiRubyClient
|
27
|
+
# This class describes a unit of measurement.
|
28
|
+
class UnitOfMeasurement
|
29
|
+
attr_accessor :domain
|
30
|
+
|
31
|
+
attr_accessor :id
|
32
|
+
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'domain' => :'domain',
|
40
|
+
:'id' => :'id',
|
41
|
+
:'name' => :'name'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'domain' => :'String',
|
49
|
+
:'id' => :'String',
|
50
|
+
:'name' => :'String'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
return unless attributes.is_a?(Hash)
|
58
|
+
|
59
|
+
# convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
61
|
+
|
62
|
+
if attributes.has_key?(:'domain')
|
63
|
+
self.domain = attributes[:'domain']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'id')
|
67
|
+
self.id = attributes[:'id']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'name')
|
71
|
+
self.name = attributes[:'name']
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properies with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
return invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
return false if @domain.nil?
|
87
|
+
return false if @id.nil?
|
88
|
+
return false if @name.nil?
|
89
|
+
return true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
domain == o.domain &&
|
98
|
+
id == o.id &&
|
99
|
+
name == o.name
|
100
|
+
end
|
101
|
+
|
102
|
+
# @see the `==` method
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def eql?(o)
|
105
|
+
self == o
|
106
|
+
end
|
107
|
+
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Fixnum] Hash code
|
110
|
+
def hash
|
111
|
+
[domain, id, name].hash
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
self.class.swagger_types.each_pair do |key, type|
|
120
|
+
if type =~ /^Array<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the the attribute
|
122
|
+
# is documented as an array but the input is not
|
123
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
125
|
+
end
|
126
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :BOOLEAN
|
151
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
temp_model = DockGeniusApiRubyClient.const_get(type).new
|
172
|
+
temp_model.build_from_hash(value)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the string representation of the object
|
177
|
+
# @return [String] String presentation of the object
|
178
|
+
def to_s
|
179
|
+
to_hash.to_s
|
180
|
+
end
|
181
|
+
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_body
|
185
|
+
to_hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the object in the form of hash
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
190
|
+
def to_hash
|
191
|
+
hash = {}
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
193
|
+
value = self.send(attr)
|
194
|
+
next if value.nil?
|
195
|
+
hash[param] = _to_hash(value)
|
196
|
+
end
|
197
|
+
hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Outputs non-array value in the form of hash
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
204
|
+
def _to_hash(value)
|
205
|
+
if value.is_a?(Array)
|
206
|
+
value.compact.map{ |v| _to_hash(v) }
|
207
|
+
elsif value.is_a?(Hash)
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
+
end
|
211
|
+
elsif value.respond_to? :to_hash
|
212
|
+
value.to_hash
|
213
|
+
else
|
214
|
+
value
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
@@ -39,12 +39,17 @@ require 'dock_genius_api_ruby_client/models/inline_response_200_1'
|
|
39
39
|
require 'dock_genius_api_ruby_client/models/inline_response_200_2'
|
40
40
|
require 'dock_genius_api_ruby_client/models/listing_agent'
|
41
41
|
require 'dock_genius_api_ruby_client/models/marina'
|
42
|
+
require 'dock_genius_api_ruby_client/models/parameter'
|
43
|
+
require 'dock_genius_api_ruby_client/models/parameter_assignment'
|
42
44
|
require 'dock_genius_api_ruby_client/models/phone'
|
45
|
+
require 'dock_genius_api_ruby_client/models/unit_of_measurement'
|
43
46
|
|
44
47
|
# APIs
|
45
48
|
require 'dock_genius_api_ruby_client/api/customer_api'
|
46
49
|
require 'dock_genius_api_ruby_client/api/dock_api'
|
47
50
|
require 'dock_genius_api_ruby_client/api/marina_api'
|
51
|
+
require 'dock_genius_api_ruby_client/api/parameter_api'
|
52
|
+
require 'dock_genius_api_ruby_client/api/unit_of_measurement_api'
|
48
53
|
|
49
54
|
module DockGeniusApiRubyClient
|
50
55
|
class << self
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,157 @@
|
|
1
|
+
=begin
|
2
|
+
#DockGenius API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
|
+
Contact: hi@dockgenius.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for DockGeniusApiRubyClient::ParameterApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'ParameterApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = DockGeniusApiRubyClient::ParameterApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of ParameterApi' do
|
41
|
+
it 'should create an instact of ParameterApi' do
|
42
|
+
expect(@instance).to be_instance_of(DockGeniusApiRubyClient::ParameterApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for parameter_count
|
47
|
+
# Count instances of the model matched by where from the data source.
|
48
|
+
#
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [String] :where Criteria to match model instances
|
51
|
+
# @return [InlineResponse200]
|
52
|
+
describe 'parameter_count test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for parameter_exists_get_parametersid_exists
|
59
|
+
# Check whether a model instance exists in the data source.
|
60
|
+
#
|
61
|
+
# @param id Model id
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [InlineResponse2002]
|
64
|
+
describe 'parameter_exists_get_parametersid_exists test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for parameter_exists_head_parametersid
|
71
|
+
# Check whether a model instance exists in the data source.
|
72
|
+
#
|
73
|
+
# @param id Model id
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [InlineResponse2002]
|
76
|
+
describe 'parameter_exists_head_parametersid test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for parameter_find
|
83
|
+
# Find all instances of the model matched by filter from the data source.
|
84
|
+
#
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
87
|
+
# @return [Array<Parameter>]
|
88
|
+
describe 'parameter_find test' do
|
89
|
+
it "should work" do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for parameter_find_by_id
|
95
|
+
# Find a model instance by {{id}} from the data source.
|
96
|
+
#
|
97
|
+
# @param id Model id
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :filter Filter defining fields and include
|
100
|
+
# @return [Parameter]
|
101
|
+
describe 'parameter_find_by_id test' do
|
102
|
+
it "should work" do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for parameter_find_one
|
108
|
+
# Find first instance of the model matched by filter from the data source.
|
109
|
+
#
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
112
|
+
# @return [Parameter]
|
113
|
+
describe 'parameter_find_one test' do
|
114
|
+
it "should work" do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for parameter_replace_by_id
|
120
|
+
# Replace attributes for a model instance and persist it into the data source.
|
121
|
+
#
|
122
|
+
# @param id Model id
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @option opts [Parameter] :data Model instance data
|
125
|
+
# @return [Parameter]
|
126
|
+
describe 'parameter_replace_by_id test' do
|
127
|
+
it "should work" do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for parameter_replace_or_create
|
133
|
+
# Replace an existing model instance or insert a new one into the data source.
|
134
|
+
#
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [Parameter] :data Model instance data
|
137
|
+
# @return [Parameter]
|
138
|
+
describe 'parameter_replace_or_create test' do
|
139
|
+
it "should work" do
|
140
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# unit tests for parameter_upsert_with_where
|
145
|
+
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
146
|
+
#
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [String] :where Criteria to match model instances
|
149
|
+
# @option opts [Parameter] :data An object of model property name/value pairs
|
150
|
+
# @return [Parameter]
|
151
|
+
describe 'parameter_upsert_with_where test' do
|
152
|
+
it "should work" do
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
end
|
@@ -0,0 +1,157 @@
|
|
1
|
+
=begin
|
2
|
+
#DockGenius API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
|
+
Contact: hi@dockgenius.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for DockGeniusApiRubyClient::UnitOfMeasurementApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'UnitOfMeasurementApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = DockGeniusApiRubyClient::UnitOfMeasurementApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of UnitOfMeasurementApi' do
|
41
|
+
it 'should create an instact of UnitOfMeasurementApi' do
|
42
|
+
expect(@instance).to be_instance_of(DockGeniusApiRubyClient::UnitOfMeasurementApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for unit_of_measurement_count
|
47
|
+
# Count instances of the model matched by where from the data source.
|
48
|
+
#
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [String] :where Criteria to match model instances
|
51
|
+
# @return [InlineResponse200]
|
52
|
+
describe 'unit_of_measurement_count test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for unit_of_measurement_exists_get_units_of_measurementid_exists
|
59
|
+
# Check whether a model instance exists in the data source.
|
60
|
+
#
|
61
|
+
# @param id Model id
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [InlineResponse2002]
|
64
|
+
describe 'unit_of_measurement_exists_get_units_of_measurementid_exists test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for unit_of_measurement_exists_head_units_of_measurementid
|
71
|
+
# Check whether a model instance exists in the data source.
|
72
|
+
#
|
73
|
+
# @param id Model id
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [InlineResponse2002]
|
76
|
+
describe 'unit_of_measurement_exists_head_units_of_measurementid test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for unit_of_measurement_find
|
83
|
+
# Find all instances of the model matched by filter from the data source.
|
84
|
+
#
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
87
|
+
# @return [Array<UnitOfMeasurement>]
|
88
|
+
describe 'unit_of_measurement_find test' do
|
89
|
+
it "should work" do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for unit_of_measurement_find_by_id
|
95
|
+
# Find a model instance by {{id}} from the data source.
|
96
|
+
#
|
97
|
+
# @param id Model id
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :filter Filter defining fields and include
|
100
|
+
# @return [UnitOfMeasurement]
|
101
|
+
describe 'unit_of_measurement_find_by_id test' do
|
102
|
+
it "should work" do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for unit_of_measurement_find_one
|
108
|
+
# Find first instance of the model matched by filter from the data source.
|
109
|
+
#
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [String] :filter Filter defining fields, where, include, order, offset, and limit
|
112
|
+
# @return [UnitOfMeasurement]
|
113
|
+
describe 'unit_of_measurement_find_one test' do
|
114
|
+
it "should work" do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for unit_of_measurement_replace_by_id
|
120
|
+
# Replace attributes for a model instance and persist it into the data source.
|
121
|
+
#
|
122
|
+
# @param id Model id
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @option opts [UnitOfMeasurement] :data Model instance data
|
125
|
+
# @return [UnitOfMeasurement]
|
126
|
+
describe 'unit_of_measurement_replace_by_id test' do
|
127
|
+
it "should work" do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for unit_of_measurement_replace_or_create
|
133
|
+
# Replace an existing model instance or insert a new one into the data source.
|
134
|
+
#
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [UnitOfMeasurement] :data Model instance data
|
137
|
+
# @return [UnitOfMeasurement]
|
138
|
+
describe 'unit_of_measurement_replace_or_create test' do
|
139
|
+
it "should work" do
|
140
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# unit tests for unit_of_measurement_upsert_with_where
|
145
|
+
# Update an existing model instance or insert a new one into the data source based on the where criteria.
|
146
|
+
#
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [String] :where Criteria to match model instances
|
149
|
+
# @option opts [UnitOfMeasurement] :data An object of model property name/value pairs
|
150
|
+
# @return [UnitOfMeasurement]
|
151
|
+
describe 'unit_of_measurement_upsert_with_where test' do
|
152
|
+
it "should work" do
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
=begin
|
2
|
+
#DockGenius API
|
3
|
+
|
4
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
|
+
Contact: hi@dockgenius.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for DockGeniusApiRubyClient::ParameterAssignment
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'ParameterAssignment' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = DockGeniusApiRubyClient::ParameterAssignment.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of ParameterAssignment' do
|
42
|
+
it 'should create an instact of ParameterAssignment' do
|
43
|
+
expect(@instance).to be_instance_of(DockGeniusApiRubyClient::ParameterAssignment)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "value"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "id"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "_parameter"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|