Class: Rumbly::Model::Parameter
- Inherits:
-
Object
- Object
- Rumbly::Model::Parameter
- Extended by:
- Abstract
- Defined in:
- lib/rumbly/model/parameter.rb
Overview
This is an abstract class that represents one parameter of an operation from a class within an MVC application. Object mapper-specific implementations should subclass this class and implement the following methods: name
and type
.
Constant Summary collapse
- ATTRIBUTES =
Attributes and default values of a Parameter
{ name: '', type: '' }
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
Compares
Parameter
objects using thename
attribute.
Methods included from Abstract
Instance Method Details
#<=>(other) ⇒ Object
Compares Parameter
objects using the name
attribute.
19 20 21 |
# File 'lib/rumbly/model/parameter.rb', line 19 def <=> (other) name <=> other.name end |