Module: BingoDisk

Defined in:
lib/bingo_disk.rb,
lib/bingo_disk/version.rb

Overview

:nodoc:

Defined Under Namespace

Modules: VERSION Classes: Connection

Class Method Summary collapse

Class Method Details

.make_host(username) ⇒ Object

Contructs a BingoDisk URL



24
25
26
# File 'lib/bingo_disk.rb', line 24

def self.make_host(username)
  "http://#{username}.bingodisk.com/bingo"
end

.make_username(username) ⇒ Object

Contructs a BingoDisk compatible username



19
20
21
# File 'lib/bingo_disk.rb', line 19

def self.make_username(username)
  username + '@bingodisk.com'
end

.passwordObject



14
15
16
# File 'lib/bingo_disk.rb', line 14

def self.password
  @password
end

.set_credentials(username, password) ⇒ Object

Set login credentials global for the library



6
7
8
# File 'lib/bingo_disk.rb', line 6

def self.set_credentials(username, password) 
  @username, @password = username, password
end

.usernameObject



10
11
12
# File 'lib/bingo_disk.rb', line 10

def self.username
  @username
end