Sha256: 827efdf5755537aa7cdf1b0988e63e22c67088178fa3578b09a9beb94791b1f5

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

module ShipCompliant
  # == ShipCompliant::ProductSalesTaxRate
  #
  # ProductSalesTaxRate wraps the SalesTaxRate value object. It provides methods
  # to easily access various attributes about each product.
  class ProductSalesTaxRate < SalesTaxRate

    # Returns the product's key.
    #
    #   product_tax_rate.product_key #=> 'ProductKey123'
    def product_key
      sales_tax[:product_key]
    end

    # Returns the product's brand key.
    #
    #   product_tax_rate.brand_key #=> 'BrandKey123'
    def brand_key
      sales_tax[:brand_key]
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ship_compliant-0.2.1 lib/ship_compliant/product_sales_tax_rate.rb
ship_compliant-0.2.0 lib/ship_compliant/product_sales_tax_rate.rb
ship_compliant-0.1.2 lib/ship_compliant/product_sales_tax_rate.rb
ship_compliant-0.1.1 lib/ship_compliant/product_sales_tax_rate.rb
ship_compliant-0.1.0 lib/ship_compliant/product_sales_tax_rate.rb