lib/blizzard_api/starcraft/request.rb
##
# Helper method to find a region_id by its symbol
Helper method to find a region_id by its symbol
Helper method to find a region_id by its symbol
def resolve_region(region_arg)
        return region_arg if region_arg.is_a? Integer
        return SC_REGION[region_arg] if region_arg.is_a? Symbol
        raise ArgumentError, 'Invalid region, please read the documentation'
      end
def resolve_region ( region_arg ) return region_arg if region_arg . is_a? Integer return SC_REGION [ region_arg ] if region_arg . is_a? Symbol raise ArgumentError , 'Invalid region, please read the documentation' end
Helper method to find a region_id by its symbol
Helper method to find a region_id by its symbol
region_arg
<not_specific>