postcodeanywhere 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/postcodeanywhere.rb +9 -2
- data/postcodeanywhere.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.3
|
data/lib/postcodeanywhere.rb
CHANGED
@@ -67,13 +67,20 @@ module PostcodeAnywhere
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def lookup_url
|
70
|
-
ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+
|
70
|
+
ADDRESS_LOOKUP+"?"+self.lookup_type+"&"+self.postcode_with_no_spaces+self.selected_country+"&"+self.license_information
|
71
71
|
end
|
72
72
|
|
73
73
|
def fetch_url
|
74
|
-
ADDRESS_FETCH+"&"+self.address_fetch_id+
|
74
|
+
ADDRESS_FETCH+"&"+self.address_fetch_id+self.selected_country+"&"+self.license_information
|
75
75
|
end
|
76
76
|
|
77
|
+
def selected_country
|
78
|
+
if self.country_code == "GB"
|
79
|
+
""
|
80
|
+
else
|
81
|
+
"&country="+self.country_code
|
82
|
+
end
|
83
|
+
end
|
77
84
|
|
78
85
|
def address_fetch_id
|
79
86
|
"id="+self.fetch_id
|
data/postcodeanywhere.gemspec
CHANGED