class TaxCloud::Responses::CartItem

A single item in the response to a TaxCloud Lookup API call.

See api.taxcloud.net/1.0/TaxCloud.asmx?op=Lookup.

Attributes

cart_item_index[RW]

The index of the cart item.

tax_amount[RW]

Tax amount for this cart item.

Public Class Methods

new(savon_response) click to toggle source

Parameters

savon_response

SOAP response.

# File lib/tax_cloud/responses/cart_item.rb, line 17
def initialize(savon_response)
  self.cart_item_index = savon_response[:cart_item_index].to_i
  self.tax_amount = BigDecimal.new(savon_response[:tax_amount])
end