Sha256: 05d1e1363b361956abf0bb7cb2ffdd57cb7f1bf9b5dc2710c5c5a858d4f76e8a
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
class Valvat module Lookup class Request def initialize(vat) @vat = vat end def perform(client) client.call(action, :message => body).to_hash[response_key] end private def body {:country_code => @vat.vat_country_code, :vat_number => @vat.to_s_wo_country} end def action :check_vat end def response_key :check_vat_response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
valvat-0.5.0 | lib/valvat/lookup/request.rb |