Class: Rapid::Services::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/ury_rapid/services/service.rb

Overview

A base class for Rapid services

Inheritance of Rapid::Services::Service is not required for Service classes, but is recommended.

Subclasses may use the reader #environment to retrieve the Environment with which they can access the rest of the Rapid system.

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ Service

Initialises the service

Examples:

Create a new service

service = Service.new(environment)

19
20
21
# File 'lib/ury_rapid/services/service.rb', line 19

def initialize(environment)
  @environment = environment
end