class VertexClient::Response::LineItem

Attributes

price[R]
product[R]
quantity[R]
total_tax[R]

Public Class Methods

new(params={}) click to toggle source
# File lib/vertex_client/responses/line_item.rb, line 7
def initialize(params={})
  @product        = params[:product]
  @quantity       = params[:quantity] ? params[:quantity].to_i : 0
  @price          = BigDecimal.new(params[:price] || 0)
  @total_tax      = BigDecimal.new(params[:total_tax] || 0)
end