Class Pyre::Campfire
In: lib/pyre/campfire.rb
Parent: Object

Pyre::Campfire is for general Campfire tasks. Logging in, logging out, and finding rooms.

Methods

Attributes

agent  [R] 
subdomain  [R] 
uri  [R] 

Public Class methods

Create a new Pyre::Campfire object. Pass in your subdomain and maybe some options. Of course, the only option is whether or not to use ssl. Pass along :ssl => true if you need it. Give it a block for self-contained wonderfulness (logs out for you).

Public Instance methods

Know the id of the room you‘re looking for? Try it here.

Know the name of the room you‘re looking for? Try it here.

Login with the supplied credentials. Returns true on success.

Log out. Returns true on success.

Pass the name or id of the room and get it back. Pass a block too! If you pass a block, the room will be left when the block completes.

Get a list of all the rooms as Pyre::Room objects.

[Validate]