class AvataxClient::Response::LineItem
Represents a line item on a {Response::Transaction}. Responsible for reporting dollar amounts, quantity and tax code.
Public Instance Methods
rate()
click to toggle source
Effective tax rate is determined by summing the rate from the details. @return [float]
# File lib/avatax_client/response/line_item.rb, line 18 def rate @rate ||= details.map(&:rate).reduce(&:+) end