Class Backup::Notifier::Campfire::Room
In: lib/backup/notifier/campfire.rb
Parent: Object

The Campfire::Room acts as a model for an actual room on the Campfire service. And it uses the Campfire::Interface‘s (HTTParty) class methods to communicate based on the provided parameters (room_id, subdomain and api_token)

Methods

message   new  

Attributes

api_token  [RW]  Campfire api authentication api_token
room_id  [RW]  Campfire account‘s room id
subdomain  [RW]  Campfire account‘s subdomain

Public Class methods

Instantiates a new Campfire::Room object and sets all the necessary arguments (@room_id, @subdomain, @api_token)

Public Instance methods

Wrapper method for the send_message (private) method

[Validate]