Class: ShelbyArena::Api
- Inherits:
-
Object
- Object
- ShelbyArena::Api
- Defined in:
- lib/shelby_arena.rb
Class Attribute Summary collapse
-
.api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
.api_secret ⇒ Object
readonly
Returns the value of attribute api_secret.
-
.password ⇒ Object
readonly
Returns the value of attribute password.
-
.service_url ⇒ Object
readonly
Returns the value of attribute service_url.
-
.session_key ⇒ Object
readonly
Returns the value of attribute session_key.
-
.username ⇒ Object
readonly
Returns the value of attribute username.
Class Method Summary collapse
- .connect(session_key, api_secret, service_url) ⇒ Object
- .request_session(username, password, api_key, service_url) ⇒ Object
Class Attribute Details
.api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def api_key @api_key end |
.api_secret ⇒ Object (readonly)
Returns the value of attribute api_secret.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def api_secret @api_secret end |
.password ⇒ Object (readonly)
Returns the value of attribute password.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def password @password end |
.service_url ⇒ Object (readonly)
Returns the value of attribute service_url.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def service_url @service_url end |
.session_key ⇒ Object (readonly)
Returns the value of attribute session_key.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def session_key @session_key end |
.username ⇒ Object (readonly)
Returns the value of attribute username.
17 18 19 |
# File 'lib/shelby_arena.rb', line 17 def username @username end |
Class Method Details
.connect(session_key, api_secret, service_url) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/shelby_arena.rb', line 28 def self.connect(session_key, api_secret, service_url) @session_key = session_key @api_secret = api_secret @service_url = service_url true end |
.request_session(username, password, api_key, service_url) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/shelby_arena.rb', line 20 def self.request_session(username, password, api_key, service_url) @username = username @password = password @api_key = api_key @service_url = service_url ShelbySession.new(ShelbyArena.request_session) end |