Class: Rumbly::Model::Operation

Inherits:
Object
  • Object
show all
Extended by:
Abstract
Defined in:
lib/rumbly/model/operation.rb

Overview

This is an abstract class that represents a single operation from one class within an MVC application. Object mapper-specific implementations should subclass this class and implement the following methods: name, parameters, and type.

Constant Summary collapse

ATTRIBUTES =

Attributes and default values of a Operation

{ name: '', parameters: [], type: 'void' }

Instance Method Summary collapse

Methods included from Abstract

stub_required_methods

Instance Method Details

#<=>(other) ⇒ Object

Compares Operation objects using the name attribute.



19
20
21
# File 'lib/rumbly/model/operation.rb', line 19

def <=> (other)
  name <=> other.name
end