simplyrets 0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +46 -13
  3. data/README.org +6 -6
  4. data/example.rb +9 -9
  5. data/lib/simplyrets.rb +33 -56
  6. data/lib/simplyrets/#listing.rb# +199 -0
  7. data/lib/simplyrets/api/default_api.rb +154 -0
  8. data/lib/simplyrets/listing.rb~ +199 -0
  9. data/lib/simplyrets/models/agent.rb +61 -0
  10. data/lib/simplyrets/models/base_object.rb +87 -0
  11. data/lib/simplyrets/models/broker.rb +37 -0
  12. data/lib/simplyrets/models/contact_information.rb +53 -0
  13. data/lib/simplyrets/models/error.rb +45 -0
  14. data/lib/simplyrets/models/geographic_data.rb +69 -0
  15. data/lib/simplyrets/models/listing.rb +199 -0
  16. data/lib/simplyrets/models/listing.rb~ +199 -0
  17. data/lib/simplyrets/models/mls_information.rb +69 -0
  18. data/lib/simplyrets/models/office.rb +61 -0
  19. data/lib/simplyrets/models/open_house.rb +37 -0
  20. data/lib/simplyrets/models/parking.rb +53 -0
  21. data/lib/simplyrets/models/property.rb +277 -0
  22. data/lib/simplyrets/models/sales.rb +69 -0
  23. data/lib/simplyrets/models/school.rb +61 -0
  24. data/lib/simplyrets/models/street_address.rb +85 -0
  25. data/lib/simplyrets/models/tax.rb +53 -0
  26. data/lib/simplyrets/simplyrets.rb +76 -0
  27. data/lib/simplyrets/simplyrets/api_error.rb +26 -0
  28. data/lib/simplyrets/simplyrets/configuration.rb +101 -0
  29. data/lib/simplyrets/simplyrets/request.rb +213 -0
  30. data/lib/simplyrets/simplyrets/response.rb +156 -0
  31. data/lib/simplyrets/simplyrets/version.rb +5 -0
  32. data/simplyrets.gemspec +16 -9
  33. metadata +153 -36
  34. data/#example.rb# +0 -29
  35. data/lib/monkey.rb +0 -90
  36. data/lib/properties_api.rb +0 -75
  37. data/lib/simplyrets.rb~ +0 -85
  38. data/lib/simplyrets/configuration.rb +0 -25
  39. data/lib/simplyrets/request.rb +0 -205
  40. data/lib/simplyrets/response.rb +0 -70
  41. data/lib/simplyrets/version.rb +0 -4
  42. data/models/agent.rb +0 -39
  43. data/models/contactinformation.rb +0 -36
  44. data/models/geographicdata.rb +0 -43
  45. data/models/listing.rb +0 -95
  46. data/models/mlsinformation.rb +0 -35
  47. data/models/office.rb +0 -39
  48. data/models/property.rb +0 -84
  49. data/models/school.rb +0 -27
  50. data/models/streetaddress.rb +0 -47
  51. data/models/tax.rb +0 -28
  52. data/pkg/simplyrets-0.1.gem +0 -0
@@ -0,0 +1,37 @@
1
+ module SimplyRetsClient
2
+ #
3
+ class Broker < BaseObject
4
+ attr_accessor :startdate
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Start Date
10
+ :'startdate' => :'startdate'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.simplyrets_types
17
+ {
18
+ :'startdate' => :'DateTime'
19
+
20
+ }
21
+ end
22
+
23
+ def initialize(attributes = {})
24
+ return if !attributes.is_a?(Hash) || attributes.empty?
25
+
26
+ # convert string to symbol for hash key
27
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
+
29
+
30
+ if attributes[:'startdate']
31
+ self.startdate = attributes[:'startdate']
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end
@@ -0,0 +1,53 @@
1
+ module SimplyRetsClient
2
+ #
3
+ class ContactInformation < BaseObject
4
+ attr_accessor :office, :cell, :full
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Contact Information Office Phone Number
10
+ :'office' => :'office',
11
+
12
+ # Contact Information Cell Phone
13
+ :'cell' => :'cell',
14
+
15
+ # Full pretty-printed address with suffix (if available)
16
+ :'full' => :'full'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.simplyrets_types
23
+ {
24
+ :'office' => :'String',
25
+ :'cell' => :'String',
26
+ :'full' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'office']
39
+ self.office = attributes[:'office']
40
+ end
41
+
42
+ if attributes[:'cell']
43
+ self.cell = attributes[:'cell']
44
+ end
45
+
46
+ if attributes[:'full']
47
+ self.full = attributes[:'full']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,45 @@
1
+ module SimplyRetsClient
2
+ #
3
+ class Error < BaseObject
4
+ attr_accessor :error, :message
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Error code. In general, we try to adhere to HTTP status code\nand use these error statuses for detailed reporting.\n
10
+ :'error' => :'error',
11
+
12
+ # Status message with an explanation of the error
13
+ :'message' => :'message'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.simplyrets_types
20
+ {
21
+ :'error' => :'Integer',
22
+ :'message' => :'String'
23
+
24
+ }
25
+ end
26
+
27
+ def initialize(attributes = {})
28
+ return if !attributes.is_a?(Hash) || attributes.empty?
29
+
30
+ # convert string to symbol for hash key
31
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
32
+
33
+
34
+ if attributes[:'error']
35
+ self.error = attributes[:'error']
36
+ end
37
+
38
+ if attributes[:'message']
39
+ self.message = attributes[:'message']
40
+ end
41
+
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,69 @@
1
+ module SimplyRetsClient
2
+ #
3
+ class GeographicData < BaseObject
4
+ attr_accessor :county, :lat, :lng, :market_area, :directions
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Listing county
10
+ :'county' => :'county',
11
+
12
+ # Listing latitude (if available)
13
+ :'lat' => :'lat',
14
+
15
+ # Listing longitude (if available)
16
+ :'lng' => :'lng',
17
+
18
+ # Listing GeoMarket area. May be the same as mlsArea
19
+ :'market_area' => :'marketArea',
20
+
21
+ # Directions to the property
22
+ :'directions' => :'directions'
23
+
24
+ }
25
+ end
26
+
27
+ # attribute type
28
+ def self.simplyrets_types
29
+ {
30
+ :'county' => :'String',
31
+ :'lat' => :'Float',
32
+ :'lng' => :'Float',
33
+ :'market_area' => :'String',
34
+ :'directions' => :'String'
35
+
36
+ }
37
+ end
38
+
39
+ def initialize(attributes = {})
40
+ return if !attributes.is_a?(Hash) || attributes.empty?
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
44
+
45
+
46
+ if attributes[:'county']
47
+ self.county = attributes[:'county']
48
+ end
49
+
50
+ if attributes[:'lat']
51
+ self.lat = attributes[:'lat']
52
+ end
53
+
54
+ if attributes[:'lng']
55
+ self.lng = attributes[:'lng']
56
+ end
57
+
58
+ if attributes[:'marketArea']
59
+ self.market_area = attributes[:'marketArea']
60
+ end
61
+
62
+ if attributes[:'directions']
63
+ self.directions = attributes[:'directions']
64
+ end
65
+
66
+ end
67
+
68
+ end
69
+ end
@@ -0,0 +1,199 @@
1
+ module SimplyRetsClient
2
+ #
3
+ class Listing < BaseObject
4
+ attr_accessor :property, :mls_id, :showing_instructions, :office, :disclaimer, :address, :list_date, :agent, :modified, :school, :sales, :photos, :list_price, :listing_id, :mls, :geo, :tax, :remarks, :private_remarks, :lease_term, :lease_type
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Specific property data associated with listing.
10
+ :'property' => :'property',
11
+
12
+ # A unique identifier for this listing specific to the SimplyRETS API.\n
13
+ :'mls_id' => :'mlsId',
14
+
15
+ # Public instructions for showing the property.
16
+ :'showing_instructions' => :'showingInstructions',
17
+
18
+ # Listing office or brokerage.
19
+ :'office' => :'office',
20
+
21
+ # Data accuracy disclaimer. The value in the disclaimer may\nchange depending on your MLS vendors rules.\n
22
+ :'disclaimer' => :'disclaimer',
23
+
24
+ # Comprehensive property address information
25
+ :'address' => :'address',
26
+
27
+ # Date and time the listing became Active
28
+ :'list_date' => :'listDate',
29
+
30
+ # Comprehensive listing agent information
31
+ :'agent' => :'agent',
32
+
33
+ # Date and time of the last modification
34
+ :'modified' => :'modified',
35
+
36
+ # Comprehensive school zone data
37
+ :'school' => :'school',
38
+
39
+ # Sales data
40
+ :'sales' => :'sales',
41
+
42
+ # Photos of the property. Images are served over https and are\nsuitable for production use on secure websites\n
43
+ :'photos' => :'photos',
44
+
45
+ # Price of the listing
46
+ :'list_price' => :'listPrice',
47
+
48
+ # Data Dictionary v1.3 ListingId. The well known identifier\nfor the listing. The value may be identical to\nmlsId. However, listingId is intended to be the value used\nby a human to retrieve the information about a specific\nlisting.\n
49
+ :'listing_id' => :'listingId',
50
+
51
+ # MLS vendor information and data
52
+ :'mls' => :'mls',
53
+
54
+ # Geographic data for the listing
55
+ :'geo' => :'geo',
56
+
57
+ # Associate tax data
58
+ :'tax' => :'tax',
59
+
60
+ # Description or remarks
61
+ :'remarks' => :'remarks',
62
+
63
+ # Agent only remarks
64
+ :'private_remarks' => :'privateRemarks',
65
+
66
+ #
67
+ :'lease_term' => :'leaseTerm',
68
+
69
+ #
70
+ :'lease_type' => :'leaseType'
71
+
72
+ }
73
+ end
74
+
75
+ # attribute type
76
+ def self.simplyrets_types
77
+ {
78
+ :'property' => :'Property',
79
+ :'mls_id' => :'Integer',
80
+ :'showing_instructions' => :'String',
81
+ :'office' => :'Office',
82
+ :'disclaimer' => :'String',
83
+ :'address' => :'StreetAddress',
84
+ :'list_date' => :'DateTime',
85
+ :'agent' => :'Agent',
86
+ :'modified' => :'DateTime',
87
+ :'school' => :'School',
88
+ :'sales' => :'Sales',
89
+ :'photos' => :'Array<String>',
90
+ :'list_price' => :'Float',
91
+ :'listing_id' => :'String',
92
+ :'mls' => :'MlsInformation',
93
+ :'geo' => :'GeographicData',
94
+ :'tax' => :'Tax',
95
+ :'remarks' => :'String',
96
+ :'private_remarks' => :'String',
97
+ :'lease_term' => :'String',
98
+ :'lease_type' => :'String'
99
+
100
+ }
101
+ end
102
+
103
+ def initialize(attributes = {})
104
+ return if !attributes.is_a?(Hash) || attributes.empty?
105
+
106
+ # convert string to symbol for hash key
107
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
108
+
109
+
110
+ if attributes[:'property']
111
+ self.property = attributes[:'property']
112
+ end
113
+
114
+ if attributes[:'mlsId']
115
+ self.mls_id = attributes[:'mlsId']
116
+ end
117
+
118
+ if attributes[:'showingInstructions']
119
+ self.showing_instructions = attributes[:'showingInstructions']
120
+ end
121
+
122
+ if attributes[:'office']
123
+ self.office = attributes[:'office']
124
+ end
125
+
126
+ if attributes[:'disclaimer']
127
+ self.disclaimer = attributes[:'disclaimer']
128
+ end
129
+
130
+ if attributes[:'address']
131
+ self.address = attributes[:'address']
132
+ end
133
+
134
+ if attributes[:'listDate']
135
+ self.list_date = attributes[:'listDate']
136
+ end
137
+
138
+ if attributes[:'agent']
139
+ self.agent = attributes[:'agent']
140
+ end
141
+
142
+ if attributes[:'modified']
143
+ self.modified = attributes[:'modified']
144
+ end
145
+
146
+ if attributes[:'school']
147
+ self.school = attributes[:'school']
148
+ end
149
+
150
+ if attributes[:'sales']
151
+ self.sales = attributes[:'sales']
152
+ end
153
+
154
+ if attributes[:'photos']
155
+ if (value = attributes[:'photos']).is_a?(Array)
156
+ self.photos = value
157
+ end
158
+ end
159
+
160
+ if attributes[:'listPrice']
161
+ self.list_price = attributes[:'listPrice']
162
+ end
163
+
164
+ if attributes[:'listingId']
165
+ self.listing_id = attributes[:'listingId']
166
+ end
167
+
168
+ if attributes[:'mls']
169
+ self.mls = attributes[:'mls']
170
+ end
171
+
172
+ if attributes[:'geo']
173
+ self.geo = attributes[:'geo']
174
+ end
175
+
176
+ if attributes[:'tax']
177
+ self.tax = attributes[:'tax']
178
+ end
179
+
180
+ if attributes[:'remarks']
181
+ self.remarks = attributes[:'remarks']
182
+ end
183
+
184
+ if attributes[:'privateRemarks']
185
+ self.private_remarks = attributes[:'privateRemarks']
186
+ end
187
+
188
+ if attributes[:'leaseTerm']
189
+ self.lease_term = attributes[:'leaseTerm']
190
+ end
191
+
192
+ if attributes[:'leaseType']
193
+ self.lease_type = attributes[:'leaseType']
194
+ end
195
+
196
+ end
197
+
198
+ end
199
+ end
@@ -0,0 +1,199 @@
1
+ module SwaggerClient
2
+ #
3
+ class Listing < BaseObject
4
+ attr_accessor :property, :mls_id, :showing_instructions, :office, :disclaimer, :address, :list_date, :agent, :modified, :school, :sales, :photos, :list_price, :listing_id, :mls, :geo, :tax, :remarks, :private_remarks, :lease_term, :lease_type
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Specific property data associated with listing.
10
+ :'property' => :'property',
11
+
12
+ # A unique identifier for this listing specific to the SimplyRETS API.\n
13
+ :'mls_id' => :'mlsId',
14
+
15
+ # Public instructions for showing the property.
16
+ :'showing_instructions' => :'showingInstructions',
17
+
18
+ # Listing office or brokerage.
19
+ :'office' => :'office',
20
+
21
+ # Data accuracy disclaimer. The value in the disclaimer may\nchange depending on your MLS vendors rules.\n
22
+ :'disclaimer' => :'disclaimer',
23
+
24
+ # Comprehensive property address information
25
+ :'address' => :'address',
26
+
27
+ # Date and time the listing became Active
28
+ :'list_date' => :'listDate',
29
+
30
+ # Comprehensive listing agent information
31
+ :'agent' => :'agent',
32
+
33
+ # Date and time of the last modification
34
+ :'modified' => :'modified',
35
+
36
+ # Comprehensive school zone data
37
+ :'school' => :'school',
38
+
39
+ # Sales data
40
+ :'sales' => :'sales',
41
+
42
+ # Photos of the property. Images are served over https and are\nsuitable for production use on secure websites\n
43
+ :'photos' => :'photos',
44
+
45
+ # Price of the listing
46
+ :'list_price' => :'listPrice',
47
+
48
+ # Data Dictionary v1.3 ListingId. The well known identifier\nfor the listing. The value may be identical to\nmlsId. However, listingId is intended to be the value used\nby a human to retrieve the information about a specific\nlisting.\n
49
+ :'listing_id' => :'listingId',
50
+
51
+ # MLS vendor information and data
52
+ :'mls' => :'mls',
53
+
54
+ # Geographic data for the listing
55
+ :'geo' => :'geo',
56
+
57
+ # Associate tax data
58
+ :'tax' => :'tax',
59
+
60
+ # Description or remarks
61
+ :'remarks' => :'remarks',
62
+
63
+ # Agent only remarks
64
+ :'private_remarks' => :'privateRemarks',
65
+
66
+ #
67
+ :'lease_term' => :'leaseTerm',
68
+
69
+ #
70
+ :'lease_type' => :'leaseType'
71
+
72
+ }
73
+ end
74
+
75
+ # attribute type
76
+ def self.swagger_types
77
+ {
78
+ :'property' => :'Property',
79
+ :'mls_id' => :'Integer',
80
+ :'showing_instructions' => :'String',
81
+ :'office' => :'Office',
82
+ :'disclaimer' => :'String',
83
+ :'address' => :'StreetAddress',
84
+ :'list_date' => :'DateTime',
85
+ :'agent' => :'Agent',
86
+ :'modified' => :'DateTime',
87
+ :'school' => :'School',
88
+ :'sales' => :'Sales',
89
+ :'photos' => :'Array<String>',
90
+ :'list_price' => :'Float',
91
+ :'listing_id' => :'String',
92
+ :'mls' => :'MlsInformation',
93
+ :'geo' => :'GeographicData',
94
+ :'tax' => :'Tax',
95
+ :'remarks' => :'String',
96
+ :'private_remarks' => :'String',
97
+ :'lease_term' => :'String',
98
+ :'lease_type' => :'String'
99
+
100
+ }
101
+ end
102
+
103
+ def initialize(attributes = {})
104
+ return if !attributes.is_a?(Hash) || attributes.empty?
105
+
106
+ # convert string to symbol for hash key
107
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
108
+
109
+
110
+ if attributes[:'property']
111
+ self.property = attributes[:'property']
112
+ end
113
+
114
+ if attributes[:'mlsId']
115
+ self.mls_id = attributes[:'mlsId']
116
+ end
117
+
118
+ if attributes[:'showingInstructions']
119
+ self.showing_instructions = attributes[:'showingInstructions']
120
+ end
121
+
122
+ if attributes[:'office']
123
+ self.office = attributes[:'office']
124
+ end
125
+
126
+ if attributes[:'disclaimer']
127
+ self.disclaimer = attributes[:'disclaimer']
128
+ end
129
+
130
+ if attributes[:'address']
131
+ self.address = attributes[:'address']
132
+ end
133
+
134
+ if attributes[:'listDate']
135
+ self.list_date = attributes[:'listDate']
136
+ end
137
+
138
+ if attributes[:'agent']
139
+ self.agent = attributes[:'agent']
140
+ end
141
+
142
+ if attributes[:'modified']
143
+ self.modified = attributes[:'modified']
144
+ end
145
+
146
+ if attributes[:'school']
147
+ self.school = attributes[:'school']
148
+ end
149
+
150
+ if attributes[:'sales']
151
+ self.sales = attributes[:'sales']
152
+ end
153
+
154
+ if attributes[:'photos']
155
+ if (value = attributes[:'photos']).is_a?(Array)
156
+ self.photos = value
157
+ end
158
+ end
159
+
160
+ if attributes[:'listPrice']
161
+ self.list_price = attributes[:'listPrice']
162
+ end
163
+
164
+ if attributes[:'listingId']
165
+ self.listing_id = attributes[:'listingId']
166
+ end
167
+
168
+ if attributes[:'mls']
169
+ self.mls = attributes[:'mls']
170
+ end
171
+
172
+ if attributes[:'geo']
173
+ self.geo = attributes[:'geo']
174
+ end
175
+
176
+ if attributes[:'tax']
177
+ self.tax = attributes[:'tax']
178
+ end
179
+
180
+ if attributes[:'remarks']
181
+ self.remarks = attributes[:'remarks']
182
+ end
183
+
184
+ if attributes[:'privateRemarks']
185
+ self.private_remarks = attributes[:'privateRemarks']
186
+ end
187
+
188
+ if attributes[:'leaseTerm']
189
+ self.lease_term = attributes[:'leaseTerm']
190
+ end
191
+
192
+ if attributes[:'leaseType']
193
+ self.lease_type = attributes[:'leaseType']
194
+ end
195
+
196
+ end
197
+
198
+ end
199
+ end