Class: Backup::Notifier::Campfire

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/notifier/campfire.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Config::Helpers

included

Constructor Details

#initialize(model, &block) ⇒ Campfire

Returns a new instance of Campfire.



20
21
22
23
# File 'lib/backup/notifier/campfire.rb', line 20

def initialize(model, &block)
  super
  instance_eval(&block) if block_given?
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers

Instance Attribute Details

#api_tokenObject

Campfire api authentication token



10
11
12
# File 'lib/backup/notifier/campfire.rb', line 10

def api_token
  @api_token
end

#room_idObject

Campfire account’s room id



18
19
20
# File 'lib/backup/notifier/campfire.rb', line 18

def room_id
  @room_id
end

#subdomainObject

Campfire account’s subdomain



14
15
16
# File 'lib/backup/notifier/campfire.rb', line 14

def subdomain
  @subdomain
end