Class: Backup::Notifier::Campfire

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

Defined Under Namespace

Classes: Interface, Room

Instance Attribute Summary collapse

Attributes inherited from Base

#on_failure, #on_success, #on_warning

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Configuration::Helpers

included

Constructor Details

#initialize(model, &block) ⇒ Campfire

Returns a new instance of Campfire.



23
24
25
26
27
# File 'lib/backup/notifier/campfire.rb', line 23

def initialize(model, &block)
  super(model)

  instance_eval(&block) if block_given?
end

Dynamic Method Handling

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

Instance Attribute Details

#api_tokenObject

Campfire api authentication token



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

def api_token
  @api_token
end

#room_idObject

Campfire account’s room id



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

def room_id
  @room_id
end

#subdomainObject

Campfire account’s subdomain



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

def subdomain
  @subdomain
end