Class: Hextech::Valorant::Status

Inherits:
Adapter
  • Object
show all
Defined in:
lib/hextech/valorant/status.rb

Constant Summary collapse

REGIONS =
%w[ap br eu kr latam na].freeze

Instance Method Summary collapse

Methods included from Mixins::Callable

included

Methods included from Mixins::ArgumentChecks

#validate_collection_for

Constructor Details

#initialize(region: 'eu') ⇒ Status

Returns a new instance of Status.



9
10
11
12
13
# File 'lib/hextech/valorant/status.rb', line 9

def initialize(region: 'eu')
  @region = region

  super()
end

Instance Method Details

#callObject



15
16
17
18
19
# File 'lib/hextech/valorant/status.rb', line 15

def call
  validate_collection_for(collection: REGIONS, option: region)

  super
end