Class: RatingChgkV2::Client
- Inherits:
-
Object
- Object
- RatingChgkV2::Client
- Includes:
- Rest
- Defined in:
- lib/rating_chgk_v2/client.rb
Instance Attribute Summary collapse
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token: '', params: {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Rest::Venues
#create_venue, #delete_venue, #update_venue, #venue, #venues
Methods included from Rest::VenueTypes
#create_venue_type, #venue_type, #venue_types
Methods included from Rest::Towns
Methods included from Rest::Tournaments
#create_tournament_result, #delete_tournament_result, #tournament, #tournament_appeals, #tournament_requests, #tournament_results, #tournaments, #update_tournament_result
Methods included from Rest::TournamentTypes
#tournament_type, #tournament_types
Methods included from Rest::TournamentSynchRequests
Methods included from Rest::TournamentSynchControversials
#tournament_synch_controversial
Methods included from Rest::TournamentSynchAppeals
Methods included from Rest::TournamentFlags
#tournament_flag, #tournament_flags
Methods included from Rest::Teams
#create_team, #delete_team, #team, #team_seasons, #team_tournaments, #teams, #update_team
Methods included from Rest::Seasons
#create_season, #delete_season, #season, #seasons, #update_season
Methods included from Rest::Releases
Methods included from Rest::Regions
Methods included from Rest::Players
#create_player, #delete_player, #player, #player_seasons, #player_tournaments, #players, #update_player
Methods included from Rest::Countries
#countries, #country, #create_country, #delete_country, #update_country
Methods included from Rest::AuthenticationToken
Constructor Details
#initialize(token: '', params: {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 |
# File 'lib/rating_chgk_v2/client.rb', line 10 def initialize(token: '', params: {}) @token = token @timeout = params.fetch(:timeout, nil) @open_timeout = params.fetch(:open_timeout, nil) end |
Instance Attribute Details
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
8 9 10 |
# File 'lib/rating_chgk_v2/client.rb', line 8 def open_timeout @open_timeout end |
#timeout ⇒ Object
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/rating_chgk_v2/client.rb', line 8 def timeout @timeout end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
7 8 9 |
# File 'lib/rating_chgk_v2/client.rb', line 7 def token @token end |