Class: Rumbly::Model::Parameter

Inherits:
Object
  • Object
show all
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

Methods included from Abstract

stub_required_methods

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