Module: Cronjob

Defined in:
lib/cronjob.rb,
lib/cronjob/client.rb,
lib/cronjob/version.rb,
lib/cronjob/configuration.rb,
lib/cronjob/requests/edit.rb,
lib/cronjob/requests/list.rb,
lib/cronjob/requests/ping.rb,
lib/cronjob/requests/show.rb,
lib/cronjob/requests/create.rb,
lib/cronjob/requests/delete.rb,
lib/cronjob/requests/requests.rb

Defined Under Namespace

Classes: Client, Configuration, Create, Delete, Edit, List, Ping, Requests, Show

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configurationObject



22
23
24
25
# File 'lib/cronjob.rb', line 22

def self.configuration
  # ugly but lets follow the convention
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



27
28
29
# File 'lib/cronjob.rb', line 27

def self.configure
  yield(configuration)
end