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



22
23
24
# File 'lib/challonge/api.rb', line 22

def self.key
  self.password
end

.key=(key) ⇒ Object



18
19
20
# File 'lib/challonge/api.rb', line 18

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

.usernameObject



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

def self.username
  self.user
end

.username=(uname) ⇒ Object



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

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