simplyrets 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simplyrets.rb~ +34 -0
- data/lib/simplyrets/api/#default_api.rb# +146 -0
- data/lib/simplyrets/api/default_api.rb +1 -5
- data/lib/simplyrets/simplyrets/version.rb +1 -1
- data/simplyrets-1.0.6.gem +0 -0
- metadata +5 -21
- data/spec/api/default_api_spec.rb +0 -135
- data/spec/api/default_api_spec.rb~ +0 -135
- data/spec/models/agent_spec.rb +0 -76
- data/spec/models/broker_spec.rb +0 -46
- data/spec/models/contact_information_spec.rb +0 -66
- data/spec/models/error_spec.rb +0 -56
- data/spec/models/geographic_data_spec.rb +0 -86
- data/spec/models/listing_spec.rb +0 -246
- data/spec/models/mls_information_spec.rb +0 -76
- data/spec/models/office_spec.rb +0 -76
- data/spec/models/open_house_spec.rb +0 -116
- data/spec/models/parking_spec.rb +0 -66
- data/spec/models/property_spec.rb +0 -366
- data/spec/models/sales_spec.rb +0 -86
- data/spec/models/school_spec.rb +0 -76
- data/spec/models/street_address_spec.rb +0 -106
- data/spec/models/tax_spec.rb +0 -66
- data/spec/spec_helper.rb +0 -80
- data/spec/spec_helper.rb~ +0 -71
@@ -1,76 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
SimplyRETS API
|
3
|
-
|
4
|
-
The SimplyRETS API is an exciting step towards making it easier for\ndevelopers and real estate agents to build something awesome with\nreal estate data!\n\nThe documentation below makes live requests to our API using the\ntrial data. To get set up with the API using live MLS data, you\nmust have RETS credentials from your MLS, which you can then use to\ncreate an app with SimplyRETS. For more information on that\nprocess, please see our [FAQ](https://simplyrets.com/faq), [Getting\nStarted](https://simplyrets.com/blog/getting-set-up.html) page, or\n[contact us](https://simplyrets.com/\\#home-contact).\n\nBelow you'll find the API endpoints, query parameters, response bodies,\nand other information about using the SimplyRETS API. You can run\nqueries by clicking the 'Try it Out' button at the bottom of each\nsection.\n\n### Authentication\nThe SimplyRETS API uses Basic Authentication. When you create an\napp, you'll get a set of API credentials to access your\nlistings. If you're trying out the test data, you can use\n`simplyrets:simplyrets` for connecting to the API.\n\n### Media Types\nThe SimplyRETS API uses the 'Accept' header to allow clients to\ncontrol media types (content versions). We maintain backwards\ncompatibility with API clients by allowing them to specify a\ncontent version. We highly recommend setting and explicity media\ntype when your application reaches production. Both the structure\nand content of our API response bodies is subject to change so we\ncan add new features while respecting the stability of applications\nwhich have already been developed.\n\nTo always use the latest SimplyRETS content version, simply use\n`application/json` in your application `Accept` header.\n\nIf you want to pin your clients media type to a specific version,\nyou can use the vendor-specific SimplyRETS media type, e.g.\n`application/vnd.simplyrets-v0.1+json\"`\n\nTo view all valid content-types for making an `OPTIONS`, make a\nrequest to the SimplyRETS api root\n\n`curl -XOPTIONS -u simplyrets:simplyrets https://api.simplyrets.com/`\n\nThe default media types used in our API responses may change in the\nfuture. If you're building an application and care about the\nstability of the API, be sure to request a specific media type in the\nAccept header as shown in the examples below.\n\nThe wordpress plugin automatically sets the `Accept` header for the\ncompatible SimplyRETS media types.\n\n### Pagination\nThere a few pieces of useful information about each request stored\nin the HTTP Headers:\n\n- `X-Total-Count` shows you the total amount of listings that match\n your current query.\n- `Link` contains pre-built pagination links for accessing the next\n'page' of listings that match your query. Read more about that\n[here](https://simplyrets.com/blog/api-pagination.html).\n
|
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 SwaggerClient::MlsInformation
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'MlsInformation' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggerClient::MlsInformation.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of MlsInformation' do
|
31
|
-
it 'should create an instact of MlsInformation' do
|
32
|
-
@instance.should be_a(SwaggerClient::MlsInformation)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "status"' 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 "area"' 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 "days_on_market"' 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
|
-
describe 'test attribute "serving_name"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
|
data/spec/models/office_spec.rb
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
SimplyRETS API
|
3
|
-
|
4
|
-
The SimplyRETS API is an exciting step towards making it easier for\ndevelopers and real estate agents to build something awesome with\nreal estate data!\n\nThe documentation below makes live requests to our API using the\ntrial data. To get set up with the API using live MLS data, you\nmust have RETS credentials from your MLS, which you can then use to\ncreate an app with SimplyRETS. For more information on that\nprocess, please see our [FAQ](https://simplyrets.com/faq), [Getting\nStarted](https://simplyrets.com/blog/getting-set-up.html) page, or\n[contact us](https://simplyrets.com/\\#home-contact).\n\nBelow you'll find the API endpoints, query parameters, response bodies,\nand other information about using the SimplyRETS API. You can run\nqueries by clicking the 'Try it Out' button at the bottom of each\nsection.\n\n### Authentication\nThe SimplyRETS API uses Basic Authentication. When you create an\napp, you'll get a set of API credentials to access your\nlistings. If you're trying out the test data, you can use\n`simplyrets:simplyrets` for connecting to the API.\n\n### Media Types\nThe SimplyRETS API uses the 'Accept' header to allow clients to\ncontrol media types (content versions). We maintain backwards\ncompatibility with API clients by allowing them to specify a\ncontent version. We highly recommend setting and explicity media\ntype when your application reaches production. Both the structure\nand content of our API response bodies is subject to change so we\ncan add new features while respecting the stability of applications\nwhich have already been developed.\n\nTo always use the latest SimplyRETS content version, simply use\n`application/json` in your application `Accept` header.\n\nIf you want to pin your clients media type to a specific version,\nyou can use the vendor-specific SimplyRETS media type, e.g.\n`application/vnd.simplyrets-v0.1+json\"`\n\nTo view all valid content-types for making an `OPTIONS`, make a\nrequest to the SimplyRETS api root\n\n`curl -XOPTIONS -u simplyrets:simplyrets https://api.simplyrets.com/`\n\nThe default media types used in our API responses may change in the\nfuture. If you're building an application and care about the\nstability of the API, be sure to request a specific media type in the\nAccept header as shown in the examples below.\n\nThe wordpress plugin automatically sets the `Accept` header for the\ncompatible SimplyRETS media types.\n\n### Pagination\nThere a few pieces of useful information about each request stored\nin the HTTP Headers:\n\n- `X-Total-Count` shows you the total amount of listings that match\n your current query.\n- `Link` contains pre-built pagination links for accessing the next\n'page' of listings that match your query. Read more about that\n[here](https://simplyrets.com/blog/api-pagination.html).\n
|
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 SwaggerClient::Office
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Office' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggerClient::Office.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Office' do
|
31
|
-
it 'should create an instact of Office' do
|
32
|
-
@instance.should be_a(SwaggerClient::Office)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "contact"' 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 "name"' 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 "serving_name"' 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
|
-
describe 'test attribute "brokerid"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
|
@@ -1,116 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
SimplyRETS API
|
3
|
-
|
4
|
-
The SimplyRETS API is an exciting step towards making it easier for\ndevelopers and real estate agents to build something awesome with\nreal estate data!\n\nThe documentation below makes live requests to our API using the\ntrial data. To get set up with the API using live MLS data, you\nmust have RETS credentials from your MLS, which you can then use to\ncreate an app with SimplyRETS. For more information on that\nprocess, please see our [FAQ](https://simplyrets.com/faq), [Getting\nStarted](https://simplyrets.com/blog/getting-set-up.html) page, or\n[contact us](https://simplyrets.com/\\#home-contact).\n\nBelow you'll find the API endpoints, query parameters, response bodies,\nand other information about using the SimplyRETS API. You can run\nqueries by clicking the 'Try it Out' button at the bottom of each\nsection.\n\n### Authentication\nThe SimplyRETS API uses Basic Authentication. When you create an\napp, you'll get a set of API credentials to access your\nlistings. If you're trying out the test data, you can use\n`simplyrets:simplyrets` for connecting to the API.\n\n### Media Types\nThe SimplyRETS API uses the 'Accept' header to allow clients to\ncontrol media types (content versions). We maintain backwards\ncompatibility with API clients by allowing them to specify a\ncontent version. We highly recommend setting and explicity media\ntype when your application reaches production. Both the structure\nand content of our API response bodies is subject to change so we\ncan add new features while respecting the stability of applications\nwhich have already been developed.\n\nTo always use the latest SimplyRETS content version, simply use\n`application/json` in your application `Accept` header.\n\nIf you want to pin your clients media type to a specific version,\nyou can use the vendor-specific SimplyRETS media type, e.g.\n`application/vnd.simplyrets-v0.1+json\"`\n\nTo view all valid content-types for making an `OPTIONS`, make a\nrequest to the SimplyRETS api root\n\n`curl -XOPTIONS -u simplyrets:simplyrets https://api.simplyrets.com/`\n\nThe default media types used in our API responses may change in the\nfuture. If you're building an application and care about the\nstability of the API, be sure to request a specific media type in the\nAccept header as shown in the examples below.\n\nThe wordpress plugin automatically sets the `Accept` header for the\ncompatible SimplyRETS media types.\n\n### Pagination\nThere a few pieces of useful information about each request stored\nin the HTTP Headers:\n\n- `X-Total-Count` shows you the total amount of listings that match\n your current query.\n- `Link` contains pre-built pagination links for accessing the next\n'page' of listings that match your query. Read more about that\n[here](https://simplyrets.com/blog/api-pagination.html).\n
|
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 SwaggerClient::OpenHouse
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'OpenHouse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggerClient::OpenHouse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of OpenHouse' do
|
31
|
-
it 'should create an instact of OpenHouse' do
|
32
|
-
@instance.should be_a(SwaggerClient::OpenHouse)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "refreshments"' 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 "listing"' 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 "start_time"' 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
|
-
describe 'test attribute "open_house_key"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "end_time"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe 'test attribute "open_house_id"' do
|
86
|
-
it 'should work' do
|
87
|
-
# assertion here
|
88
|
-
# should be_a()
|
89
|
-
# should be_nil
|
90
|
-
# should ==
|
91
|
-
# should_not ==
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'test attribute "type"' do
|
96
|
-
it 'should work' do
|
97
|
-
# assertion here
|
98
|
-
# should be_a()
|
99
|
-
# should be_nil
|
100
|
-
# should ==
|
101
|
-
# should_not ==
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe 'test attribute "description"' do
|
106
|
-
it 'should work' do
|
107
|
-
# assertion here
|
108
|
-
# should be_a()
|
109
|
-
# should be_nil
|
110
|
-
# should ==
|
111
|
-
# should_not ==
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
end
|
116
|
-
|
data/spec/models/parking_spec.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
SimplyRETS API
|
3
|
-
|
4
|
-
The SimplyRETS API is an exciting step towards making it easier for\ndevelopers and real estate agents to build something awesome with\nreal estate data!\n\nThe documentation below makes live requests to our API using the\ntrial data. To get set up with the API using live MLS data, you\nmust have RETS credentials from your MLS, which you can then use to\ncreate an app with SimplyRETS. For more information on that\nprocess, please see our [FAQ](https://simplyrets.com/faq), [Getting\nStarted](https://simplyrets.com/blog/getting-set-up.html) page, or\n[contact us](https://simplyrets.com/\\#home-contact).\n\nBelow you'll find the API endpoints, query parameters, response bodies,\nand other information about using the SimplyRETS API. You can run\nqueries by clicking the 'Try it Out' button at the bottom of each\nsection.\n\n### Authentication\nThe SimplyRETS API uses Basic Authentication. When you create an\napp, you'll get a set of API credentials to access your\nlistings. If you're trying out the test data, you can use\n`simplyrets:simplyrets` for connecting to the API.\n\n### Media Types\nThe SimplyRETS API uses the 'Accept' header to allow clients to\ncontrol media types (content versions). We maintain backwards\ncompatibility with API clients by allowing them to specify a\ncontent version. We highly recommend setting and explicity media\ntype when your application reaches production. Both the structure\nand content of our API response bodies is subject to change so we\ncan add new features while respecting the stability of applications\nwhich have already been developed.\n\nTo always use the latest SimplyRETS content version, simply use\n`application/json` in your application `Accept` header.\n\nIf you want to pin your clients media type to a specific version,\nyou can use the vendor-specific SimplyRETS media type, e.g.\n`application/vnd.simplyrets-v0.1+json\"`\n\nTo view all valid content-types for making an `OPTIONS`, make a\nrequest to the SimplyRETS api root\n\n`curl -XOPTIONS -u simplyrets:simplyrets https://api.simplyrets.com/`\n\nThe default media types used in our API responses may change in the\nfuture. If you're building an application and care about the\nstability of the API, be sure to request a specific media type in the\nAccept header as shown in the examples below.\n\nThe wordpress plugin automatically sets the `Accept` header for the\ncompatible SimplyRETS media types.\n\n### Pagination\nThere a few pieces of useful information about each request stored\nin the HTTP Headers:\n\n- `X-Total-Count` shows you the total amount of listings that match\n your current query.\n- `Link` contains pre-built pagination links for accessing the next\n'page' of listings that match your query. Read more about that\n[here](https://simplyrets.com/blog/api-pagination.html).\n
|
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 SwaggerClient::Parking
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Parking' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggerClient::Parking.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Parking' do
|
31
|
-
it 'should create an instact of Parking' do
|
32
|
-
@instance.should be_a(SwaggerClient::Parking)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "leased"' 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 "spaces"' 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 "description"' 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
|
-
|
@@ -1,366 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
SimplyRETS API
|
3
|
-
|
4
|
-
The SimplyRETS API is an exciting step towards making it easier for\ndevelopers and real estate agents to build something awesome with\nreal estate data!\n\nThe documentation below makes live requests to our API using the\ntrial data. To get set up with the API using live MLS data, you\nmust have RETS credentials from your MLS, which you can then use to\ncreate an app with SimplyRETS. For more information on that\nprocess, please see our [FAQ](https://simplyrets.com/faq), [Getting\nStarted](https://simplyrets.com/blog/getting-set-up.html) page, or\n[contact us](https://simplyrets.com/\\#home-contact).\n\nBelow you'll find the API endpoints, query parameters, response bodies,\nand other information about using the SimplyRETS API. You can run\nqueries by clicking the 'Try it Out' button at the bottom of each\nsection.\n\n### Authentication\nThe SimplyRETS API uses Basic Authentication. When you create an\napp, you'll get a set of API credentials to access your\nlistings. If you're trying out the test data, you can use\n`simplyrets:simplyrets` for connecting to the API.\n\n### Media Types\nThe SimplyRETS API uses the 'Accept' header to allow clients to\ncontrol media types (content versions). We maintain backwards\ncompatibility with API clients by allowing them to specify a\ncontent version. We highly recommend setting and explicity media\ntype when your application reaches production. Both the structure\nand content of our API response bodies is subject to change so we\ncan add new features while respecting the stability of applications\nwhich have already been developed.\n\nTo always use the latest SimplyRETS content version, simply use\n`application/json` in your application `Accept` header.\n\nIf you want to pin your clients media type to a specific version,\nyou can use the vendor-specific SimplyRETS media type, e.g.\n`application/vnd.simplyrets-v0.1+json\"`\n\nTo view all valid content-types for making an `OPTIONS`, make a\nrequest to the SimplyRETS api root\n\n`curl -XOPTIONS -u simplyrets:simplyrets https://api.simplyrets.com/`\n\nThe default media types used in our API responses may change in the\nfuture. If you're building an application and care about the\nstability of the API, be sure to request a specific media type in the\nAccept header as shown in the examples below.\n\nThe wordpress plugin automatically sets the `Accept` header for the\ncompatible SimplyRETS media types.\n\n### Pagination\nThere a few pieces of useful information about each request stored\nin the HTTP Headers:\n\n- `X-Total-Count` shows you the total amount of listings that match\n your current query.\n- `Link` contains pre-built pagination links for accessing the next\n'page' of listings that match your query. Read more about that\n[here](https://simplyrets.com/blog/api-pagination.html).\n
|
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 SwaggerClient::Property
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Property' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = SwaggerClient::Property.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Property' do
|
31
|
-
it 'should create an instact of Property' do
|
32
|
-
@instance.should be_a(SwaggerClient::Property)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "roof"' 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 "cooling"' 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 "style"' 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
|
-
describe 'test attribute "area"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "baths_full"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe 'test attribute "baths_half"' do
|
86
|
-
it 'should work' do
|
87
|
-
# assertion here
|
88
|
-
# should be_a()
|
89
|
-
# should be_nil
|
90
|
-
# should ==
|
91
|
-
# should_not ==
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'test attribute "stories"' do
|
96
|
-
it 'should work' do
|
97
|
-
# assertion here
|
98
|
-
# should be_a()
|
99
|
-
# should be_nil
|
100
|
-
# should ==
|
101
|
-
# should_not ==
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
describe 'test attribute "fireplaces"' do
|
106
|
-
it 'should work' do
|
107
|
-
# assertion here
|
108
|
-
# should be_a()
|
109
|
-
# should be_nil
|
110
|
-
# should ==
|
111
|
-
# should_not ==
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
describe 'test attribute "flooring"' do
|
116
|
-
it 'should work' do
|
117
|
-
# assertion here
|
118
|
-
# should be_a()
|
119
|
-
# should be_nil
|
120
|
-
# should ==
|
121
|
-
# should_not ==
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
describe 'test attribute "heating"' do
|
126
|
-
it 'should work' do
|
127
|
-
# assertion here
|
128
|
-
# should be_a()
|
129
|
-
# should be_nil
|
130
|
-
# should ==
|
131
|
-
# should_not ==
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
describe 'test attribute "foundation"' do
|
136
|
-
it 'should work' do
|
137
|
-
# assertion here
|
138
|
-
# should be_a()
|
139
|
-
# should be_nil
|
140
|
-
# should ==
|
141
|
-
# should_not ==
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
describe 'test attribute "pool_features"' do
|
146
|
-
it 'should work' do
|
147
|
-
# assertion here
|
148
|
-
# should be_a()
|
149
|
-
# should be_nil
|
150
|
-
# should ==
|
151
|
-
# should_not ==
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
describe 'test attribute "laundry_features"' do
|
156
|
-
it 'should work' do
|
157
|
-
# assertion here
|
158
|
-
# should be_a()
|
159
|
-
# should be_nil
|
160
|
-
# should ==
|
161
|
-
# should_not ==
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
describe 'test attribute "occupant_name"' do
|
166
|
-
it 'should work' do
|
167
|
-
# assertion here
|
168
|
-
# should be_a()
|
169
|
-
# should be_nil
|
170
|
-
# should ==
|
171
|
-
# should_not ==
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
describe 'test attribute "lot_description"' do
|
176
|
-
it 'should work' do
|
177
|
-
# assertion here
|
178
|
-
# should be_a()
|
179
|
-
# should be_nil
|
180
|
-
# should ==
|
181
|
-
# should_not ==
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
describe 'test attribute "sub_type"' do
|
186
|
-
it 'should work' do
|
187
|
-
# assertion here
|
188
|
-
# should be_a()
|
189
|
-
# should be_nil
|
190
|
-
# should ==
|
191
|
-
# should_not ==
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
describe 'test attribute "bedrooms"' do
|
196
|
-
it 'should work' do
|
197
|
-
# assertion here
|
198
|
-
# should be_a()
|
199
|
-
# should be_nil
|
200
|
-
# should ==
|
201
|
-
# should_not ==
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
describe 'test attribute "interior_features"' do
|
206
|
-
it 'should work' do
|
207
|
-
# assertion here
|
208
|
-
# should be_a()
|
209
|
-
# should be_nil
|
210
|
-
# should ==
|
211
|
-
# should_not ==
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
215
|
-
describe 'test attribute "lot_size"' do
|
216
|
-
it 'should work' do
|
217
|
-
# assertion here
|
218
|
-
# should be_a()
|
219
|
-
# should be_nil
|
220
|
-
# should ==
|
221
|
-
# should_not ==
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
225
|
-
describe 'test attribute "area_source"' do
|
226
|
-
it 'should work' do
|
227
|
-
# assertion here
|
228
|
-
# should be_a()
|
229
|
-
# should be_nil
|
230
|
-
# should ==
|
231
|
-
# should_not ==
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
describe 'test attribute "maintenance_expense"' do
|
236
|
-
it 'should work' do
|
237
|
-
# assertion here
|
238
|
-
# should be_a()
|
239
|
-
# should be_nil
|
240
|
-
# should ==
|
241
|
-
# should_not ==
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
describe 'test attribute "additional_rooms"' do
|
246
|
-
it 'should work' do
|
247
|
-
# assertion here
|
248
|
-
# should be_a()
|
249
|
-
# should be_nil
|
250
|
-
# should ==
|
251
|
-
# should_not ==
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
|
-
describe 'test attribute "exterior_features"' do
|
256
|
-
it 'should work' do
|
257
|
-
# assertion here
|
258
|
-
# should be_a()
|
259
|
-
# should be_nil
|
260
|
-
# should ==
|
261
|
-
# should_not ==
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
describe 'test attribute "water"' do
|
266
|
-
it 'should work' do
|
267
|
-
# assertion here
|
268
|
-
# should be_a()
|
269
|
-
# should be_nil
|
270
|
-
# should ==
|
271
|
-
# should_not ==
|
272
|
-
end
|
273
|
-
end
|
274
|
-
|
275
|
-
describe 'test attribute "view"' do
|
276
|
-
it 'should work' do
|
277
|
-
# assertion here
|
278
|
-
# should be_a()
|
279
|
-
# should be_nil
|
280
|
-
# should ==
|
281
|
-
# should_not ==
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
describe 'test attribute "subdivision"' do
|
286
|
-
it 'should work' do
|
287
|
-
# assertion here
|
288
|
-
# should be_a()
|
289
|
-
# should be_nil
|
290
|
-
# should ==
|
291
|
-
# should_not ==
|
292
|
-
end
|
293
|
-
end
|
294
|
-
|
295
|
-
describe 'test attribute "construction"' do
|
296
|
-
it 'should work' do
|
297
|
-
# assertion here
|
298
|
-
# should be_a()
|
299
|
-
# should be_nil
|
300
|
-
# should ==
|
301
|
-
# should_not ==
|
302
|
-
end
|
303
|
-
end
|
304
|
-
|
305
|
-
describe 'test attribute "parking"' do
|
306
|
-
it 'should work' do
|
307
|
-
# assertion here
|
308
|
-
# should be_a()
|
309
|
-
# should be_nil
|
310
|
-
# should ==
|
311
|
-
# should_not ==
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
describe 'test attribute "type"' do
|
316
|
-
it 'should work' do
|
317
|
-
# assertion here
|
318
|
-
# should be_a()
|
319
|
-
# should be_nil
|
320
|
-
# should ==
|
321
|
-
# should_not ==
|
322
|
-
end
|
323
|
-
end
|
324
|
-
|
325
|
-
describe 'test attribute "garage_spaces"' do
|
326
|
-
it 'should work' do
|
327
|
-
# assertion here
|
328
|
-
# should be_a()
|
329
|
-
# should be_nil
|
330
|
-
# should ==
|
331
|
-
# should_not ==
|
332
|
-
end
|
333
|
-
end
|
334
|
-
|
335
|
-
describe 'test attribute "accessibility"' do
|
336
|
-
it 'should work' do
|
337
|
-
# assertion here
|
338
|
-
# should be_a()
|
339
|
-
# should be_nil
|
340
|
-
# should ==
|
341
|
-
# should_not ==
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
describe 'test attribute "occupant_type"' do
|
346
|
-
it 'should work' do
|
347
|
-
# assertion here
|
348
|
-
# should be_a()
|
349
|
-
# should be_nil
|
350
|
-
# should ==
|
351
|
-
# should_not ==
|
352
|
-
end
|
353
|
-
end
|
354
|
-
|
355
|
-
describe 'test attribute "year_built"' do
|
356
|
-
it 'should work' do
|
357
|
-
# assertion here
|
358
|
-
# should be_a()
|
359
|
-
# should be_nil
|
360
|
-
# should ==
|
361
|
-
# should_not ==
|
362
|
-
end
|
363
|
-
end
|
364
|
-
|
365
|
-
end
|
366
|
-
|