Parent

Methods

Class/Module Index [+]

Quicksearch

Backup::Notifier::Campfire::Room

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)

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

new(room_id, subdomain, api_token) click to toggle source

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

# File lib/backup/notifier/campfire.rb, line 112
def initialize(room_id, subdomain, api_token)
  @room_id   = room_id
  @subdomain = subdomain
  @api_token = api_token
end

Public Instance Methods

message(message) click to toggle source

Wrapper method for the send_message (private) method

# File lib/backup/notifier/campfire.rb, line 120
def message(message)
  send_message(message)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.