Class: RatingChgkV2::Client

Inherits:
Object
  • Object
show all
Includes:
Rest
Defined in:
lib/rating_chgk_v2/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#town, #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

#tournament_synch_request

Methods included from Rest::TournamentSynchControversials

#tournament_synch_controversial

Methods included from Rest::TournamentSynchAppeals

#tournament_synch_appeal

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

#release, #releases

Methods included from Rest::Regions

#region, #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

#authentication_token

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_timeoutObject

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

#timeoutObject

Returns the value of attribute timeout.



8
9
10
# File 'lib/rating_chgk_v2/client.rb', line 8

def timeout
  @timeout
end

#tokenObject (readonly)

Returns the value of attribute token.



7
8
9
# File 'lib/rating_chgk_v2/client.rb', line 7

def token
  @token
end