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
-
.make_host(username) ⇒ Object
Contructs a BingoDisk URL.
-
.make_username(username) ⇒ Object
Contructs a BingoDisk compatible username.
- .password ⇒ Object
-
.set_credentials(username, password) ⇒ Object
Set login credentials global for the library.
- .username ⇒ Object
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 |
.password ⇒ Object
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 |
.username ⇒ Object
10 11 12 |
# File 'lib/bingo_disk.rb', line 10 def self.username @username end |