Sha256: 1cce30eef46ec27ee8e30d383f4299affda4302d7a32e4c4e1f822b1ae0f1ac6

Contents?: true

Size: 182 Bytes

Versions: 5

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true
module Usps
  module Api
    def tag_unless_blank(xml, tag_name, data)
      xml.tag!(tag_name, data) unless data.blank? || data.nil?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
usps-ruby-client-0.2.0 lib/usps/api/xml.rb
usps-ruby-client-0.1.3 lib/usps/api/xml.rb
usps-ruby-client-0.1.2 lib/usps/api/xml.rb
usps-ruby-client-0.1.1 lib/usps/api/xml.rb
usps-ruby-client-0.1.0 lib/usps/api/xml.rb