Class: Vatman::Check

Inherits:
Object
  • Object
show all
Defined in:
lib/vatman.rb

Instance Method Summary collapse

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

#addressObject



19
20
21
# File 'lib/vatman.rb', line 19

def address
  response[:address]
end

#nameObject



15
16
17
# File 'lib/vatman.rb', line 15

def name
  response[:name]
end

#valid?Boolean

Returns:



11
12
13
# File 'lib/vatman.rb', line 11

def valid?
  response[:valid]
end