ruby_postcode_anywhere 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby_postcode_anywhere.rb +8 -0
- data/ruby_postcode_anywhere.gemspec +2 -2
- metadata +2 -2
@@ -14,6 +14,14 @@ module PostcodeAnywhere
|
|
14
14
|
return true if errors.any?
|
15
15
|
response.first["IsCorrect"] == "False" if response
|
16
16
|
end
|
17
|
+
|
18
|
+
def sort_code_valid?
|
19
|
+
!(errors["Description"] == "SortCode Invalid" || ( response && response.first["StatusInformation"] == "UnknownSortCode"))
|
20
|
+
end
|
21
|
+
|
22
|
+
def account_number_valid?
|
23
|
+
!(errors["Description"] == "AccountNumber Invalid" || ( response && response.first["StatusInformation"] == "InvalidAccountNumber"))
|
24
|
+
end
|
17
25
|
end
|
18
26
|
|
19
27
|
class << self
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ruby_postcode_anywhere'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '
|
3
|
+
s.version = '0.0.4'
|
4
|
+
s.date = '2013-04-24'
|
5
5
|
s.summary = "PostcodeAnywhere wrapper"
|
6
6
|
s.description = "A simple wrapper for PostcodeAnywhere/Interactive/RetrieveByParts"
|
7
7
|
s.authors = ["Bartosz Pranczke"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_postcode_anywhere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple wrapper for PostcodeAnywhere/Interactive/RetrieveByParts
|
15
15
|
email: pranczke@gmail.com
|