Class: Backup::Notifier::Campfire::Interface

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

Overview

The Campfire::Interface acts as the Interface for the Campfire class. It uses the HTTParty library and the Campfire::Room class to communicate with the Campfire rooms. HTTParty provides the Campfire::Interface with the methods necessary to communicate (inside the HTTParty module) such as the class methods:

  • post

  • base_uri

  • basic_auth

Class Method Summary collapse

Class Method Details

.room(room_id, subdomain, api_token) ⇒ Object

Instantiates a new Campfire::Room object with the provided arguments and returns this object



87
88
89
# File 'lib/backup/notifier/campfire.rb', line 87

def self.room(room_id, subdomain, api_token)
  Room.new(room_id, subdomain, api_token)
end