Class: Challonge::API

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/challonge/api.rb

Direct Known Subclasses

Match, Participant, Tournament

Class Method Summary collapse

Class Method Details

.keyObject



20
21
22
# File 'lib/challonge/api.rb', line 20

def self.key
  self.password
end

.key=(key) ⇒ Object



16
17
18
# File 'lib/challonge/api.rb', line 16

def self.key=(key)
  self.password = key
end

.usernameObject



12
13
14
# File 'lib/challonge/api.rb', line 12

def self.username
  self.user
end

.username=(uname) ⇒ Object



8
9
10
# File 'lib/challonge/api.rb', line 8

def self.username=(uname)
  self.user = uname
end