lib/taxem.rb
def local_rate(zip_code)
      max_boundary = boundary_with_max_rate(zip_code)
      rate_item = nil
      if max_boundary.has_local_tax?
        rate_item = RateItem.new
        rate_item.zip = zip_code
        rate_item.state = 'NE'
        rate_item.rate = @tax_calculator.local_rate(max_boundary)
      end
      rate_item
    end
# Returns nil if the boundary's tax is only calculated
# using the state rate.
# If the state rate is the only tax rate that applies,
# then there is NO local rate.
#
Returns nil if the boundary's tax is only calculated
using the state rate.
If the state rate is the only tax rate that applies,
then there is NO local rate.
Returns nil if the boundary ' s tax is only calculated using the state rate . If the state rate is the only tax rate that applies then there is NO local rate .
def local_rate(zip_code)
      max_boundary = boundary_with_max_rate(zip_code)
      rate_item = nil
      if max_boundary.has_local_tax?
        rate_item = RateItem.new
        rate_item.zip = zip_code
        rate_item.state = 'NE'
        rate_item.rate = @tax_calculator.local_rate(max_boundary)
      end
      rate_item
    end
def local_rate ( zip_code ) max_boundary = boundary_with_max_rate ( zip_code ) rate_item = nil if max_boundary . has_local_tax? rate_item = RateItem . new rate_item . zip = zip_code rate_item . state = 'NE' rate_item . rate = @tax_calculator . local_rate ( max_boundary ) end rate_item end
Returns nil if the boundary's tax is only calculated
using the state rate.
Returns nil if the boundary ' s tax is only calculated using the state rate .
zip_code