Class: PSN::API
- Inherits:
-
Object
- Object
- PSN::API
- Defined in:
- lib/psn/api.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- RETRIES =
3
- BASE_URL =
"http://www.psnapi.com.ar/ps3/api/psn.asmx"
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
11 12 13 |
# File 'lib/psn/api.rb', line 11 def client @client end |
Instance Method Details
#games_for(user) ⇒ Object
17 18 19 20 |
# File 'lib/psn/api.rb', line 17 def games_for(user) document = fetch('getGames', "sPSNID" => user.id.to_s) document.children.first.children end |
#player_summaries_for(user) ⇒ Object
13 14 15 |
# File 'lib/psn/api.rb', line 13 def player_summaries_for(user) fetch('getPSNID', "sPSNID" => user.id.to_s) end |