In order to choose the right one for you, ask yourself these simple questions:
1) Will my object contain functions? YES: Class or Module | NO: Type
2) Will there be more than one instance of my object? YES: Class or Type | NO: Module
So...
NO, NO: Type
NO, YES: Type
YES, NO: Module
YES, YES: Class
Happy programming!
1) Will my object contain functions? YES: Class or Module | NO: Type
2) Will there be more than one instance of my object? YES: Class or Type | NO: Module
So...
NO, NO: Type
NO, YES: Type
YES, NO: Module
YES, YES: Class
Happy programming!