WAStoreItem


Seaside-Examples-Store-Model

Comment:

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.

Hierarchy:

ProtoObject
Object
WAStoreItem

Summary:

instance variables:

description price subtitle title

methods:

instance class
as yet unclassified no messages

Detail:

instance variables:

description
inferredType:
UndefinedObject
price
inferredType:
UndefinedObject
subtitle
inferredType:
UndefinedObject
title
inferredType:
UndefinedObject

instance methods:

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

class methods:

^top


- made by Dandelion -