simplyrets 0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +46 -13
- data/README.org +6 -6
- data/example.rb +9 -9
- data/lib/simplyrets.rb +33 -56
- data/lib/simplyrets/#listing.rb# +199 -0
- data/lib/simplyrets/api/default_api.rb +154 -0
- data/lib/simplyrets/listing.rb~ +199 -0
- data/lib/simplyrets/models/agent.rb +61 -0
- data/lib/simplyrets/models/base_object.rb +87 -0
- data/lib/simplyrets/models/broker.rb +37 -0
- data/lib/simplyrets/models/contact_information.rb +53 -0
- data/lib/simplyrets/models/error.rb +45 -0
- data/lib/simplyrets/models/geographic_data.rb +69 -0
- data/lib/simplyrets/models/listing.rb +199 -0
- data/lib/simplyrets/models/listing.rb~ +199 -0
- data/lib/simplyrets/models/mls_information.rb +69 -0
- data/lib/simplyrets/models/office.rb +61 -0
- data/lib/simplyrets/models/open_house.rb +37 -0
- data/lib/simplyrets/models/parking.rb +53 -0
- data/lib/simplyrets/models/property.rb +277 -0
- data/lib/simplyrets/models/sales.rb +69 -0
- data/lib/simplyrets/models/school.rb +61 -0
- data/lib/simplyrets/models/street_address.rb +85 -0
- data/lib/simplyrets/models/tax.rb +53 -0
- data/lib/simplyrets/simplyrets.rb +76 -0
- data/lib/simplyrets/simplyrets/api_error.rb +26 -0
- data/lib/simplyrets/simplyrets/configuration.rb +101 -0
- data/lib/simplyrets/simplyrets/request.rb +213 -0
- data/lib/simplyrets/simplyrets/response.rb +156 -0
- data/lib/simplyrets/simplyrets/version.rb +5 -0
- data/simplyrets.gemspec +16 -9
- metadata +153 -36
- data/#example.rb# +0 -29
- data/lib/monkey.rb +0 -90
- data/lib/properties_api.rb +0 -75
- data/lib/simplyrets.rb~ +0 -85
- data/lib/simplyrets/configuration.rb +0 -25
- data/lib/simplyrets/request.rb +0 -205
- data/lib/simplyrets/response.rb +0 -70
- data/lib/simplyrets/version.rb +0 -4
- data/models/agent.rb +0 -39
- data/models/contactinformation.rb +0 -36
- data/models/geographicdata.rb +0 -43
- data/models/listing.rb +0 -95
- data/models/mlsinformation.rb +0 -35
- data/models/office.rb +0 -39
- data/models/property.rb +0 -84
- data/models/school.rb +0 -27
- data/models/streetaddress.rb +0 -47
- data/models/tax.rb +0 -28
- data/pkg/simplyrets-0.1.gem +0 -0
data/models/school.rb
DELETED
@@ -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
|
data/models/streetaddress.rb
DELETED
@@ -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
|
data/models/tax.rb
DELETED
@@ -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
|
data/pkg/simplyrets-0.1.gem
DELETED
Binary file
|