struct

MiniStore::CartItem

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(product_id : Int32, name : String, quantity : Int32, unit_price_cents : Int32)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

line_total_cents
Source
name
Source
product_id
Source
quantity
Source
unit_price_cents
Source
with_quantity(quantity : Int32) : CartItem
Source