Class: Vatman::Check
- Inherits:
-
Object
- Object
- Vatman::Check
- Defined in:
- lib/vatman.rb
Instance Method Summary collapse
- #address ⇒ Object
-
#initialize(country, number) ⇒ Check
constructor
A new instance of Check.
- #name ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(country, number) ⇒ Check
Returns a new instance of Check.
7 8 9 |
# File 'lib/vatman.rb', line 7 def initialize(country, number) @country, @number = country, number.to_s.gsub(' ', '') end |
Instance Method Details
#address ⇒ Object
19 20 21 |
# File 'lib/vatman.rb', line 19 def address response[:address] end |
#name ⇒ Object
15 16 17 |
# File 'lib/vatman.rb', line 15 def name response[:name] end |
#valid? ⇒ Boolean
11 12 13 |
# File 'lib/vatman.rb', line 11 def valid? response[:valid] end |