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
@@ -1,27 +0,0 @@
1
- class School
2
- attr_accessor :district
3
-
4
- # :internal => :external
5
- def self.attribute_map
6
- {
7
- :district => :district
8
-
9
- }
10
- end
11
-
12
- def initialize(attributes = {})
13
- return if attributes.empty?
14
- # Morph attribute keys into undescored rubyish style
15
- if self.class.attribute_map[:"district"]
16
- @district = attributes["district"]
17
- end
18
- end
19
-
20
- def to_body
21
- body = {}
22
- self.class.attribute_map.each_pair do |key, value|
23
- body[value] = self.send(key) unless self.send(key).nil?
24
- end
25
- body
26
- end
27
- end
@@ -1,47 +0,0 @@
1
- class StreetAddress
2
- attr_accessor :country, :postal_code, :street_name, :city, :street_number, :full
3
-
4
- # :internal => :external
5
- def self.attribute_map
6
- {
7
- :country => :country,
8
- :postal_code => :postalCode,
9
- :street_name => :streetName,
10
- :city => :city,
11
- :street_number => :streetNumber,
12
- :full => :full
13
-
14
- }
15
- end
16
-
17
- def initialize(attributes = {})
18
- return if attributes.empty?
19
- # Morph attribute keys into undescored rubyish style
20
- if self.class.attribute_map[:"country"]
21
- @country = attributes["country"]
22
- end
23
- if self.class.attribute_map[:"postal_code"]
24
- @postal_code = attributes["postalCode"]
25
- end
26
- if self.class.attribute_map[:"street_name"]
27
- @street_name = attributes["streetName"]
28
- end
29
- if self.class.attribute_map[:"city"]
30
- @city = attributes["city"]
31
- end
32
- if self.class.attribute_map[:"street_number"]
33
- @street_number = attributes["streetNumber"]
34
- end
35
- if self.class.attribute_map[:"full"]
36
- @full = attributes["full"]
37
- end
38
- end
39
-
40
- def to_body
41
- body = {}
42
- self.class.attribute_map.each_pair do |key, value|
43
- body[value] = self.send(key) unless self.send(key).nil?
44
- end
45
- body
46
- end
47
- end
@@ -1,28 +0,0 @@
1
- class Tax
2
- attr_accessor :id
3
-
4
- # :internal => :external
5
- def self.attribute_map
6
- {
7
- :id => :id
8
-
9
- }
10
- end
11
-
12
- def initialize(attributes = {})
13
- return if attributes.empty?
14
- # Morph attribute keys into undescored rubyish style
15
- if self.class.attribute_map[:"id"]
16
- @id = attributes["id"]
17
- end
18
-
19
- end
20
-
21
- def to_body
22
- body = {}
23
- self.class.attribute_map.each_pair do |key, value|
24
- body[value] = self.send(key) unless self.send(key).nil?
25
- end
26
- body
27
- end
28
- end
Binary file