Chapters/converting-a-function-to-a-class/ClassFramework.ps1

class TMMachineInfo {

    # Properties
    [string]$ComputerName
    [string]$OSVersion
    [string]$OSBuild
    [string]$Manufacturer
    [string]$Model
    [string]$Processors
    [string]$Cores
    [string]$RAM
    [string]$SystemFreeSpace
    [string]$Architecture

    # Methods
    # none at this time

    # Constructors
    TMMachineInfo([string]$ComputerName) {
        # insert code to create a new instance of $this
    }

} #class definition