module SunatBooks::CommonUtils

Public Instance Methods

available_value?(source, attribute) click to toggle source
# File lib/sunat_books/common_utils.rb, line 5
def available_value?(source, attribute)
  source.respond_to?(attribute) ? source.send(attribute) : ""
end