class

MiniStore::Product

Inherits JSON::Serializable < Reference < Object

Constructors

new(id : Int32, name : String, category : String, price_cents : Int32, stock : Int32)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

category
Source
in_stock?(quantity : Int32) : Bool
Source
name
Source
price_cents
Source
stock
Source
stock=(stock : Int32)
Source