Models a single item of inventory - stores a title, subtitle, fill description, and price. The only real behavior is #matches:, which is used for search.
ProtoObjectObjectWAStoreItem
| description | price | subtitle | title |
| instance | class |
|---|---|
| as yet unclassified | no messages
|
| description |
|---|
|
| price |
|---|
|
| subtitle |
|---|
|
| title |
|---|
|
| as yet unclassified |
|---|
| description |
^ description |
| description: aString |
description _ aString |
| matches: aString |
^ (title includesSubstring: aString caseSensitive: false) or: [description includesSubstring: aString caseSensitive: false] |
| price |
^ price |
| price: cents |
price _ cents |
| printString |
^ self title |
| subtitle |
^ subtitle |
| subtitle: aString |
subtitle _ aString |
| title |
^ title |
| title: aString |
title _ aString |