class CocRb::Label

Public Class Methods

get_LabelClan(_limit:false, status: false) click to toggle source

This method gets Labels for the Clan Profile.

# File lib/cocRb/labels.rb, line 56
def self.get_LabelClan(_limit:false, status: false)
         get
         res = @conn.get("v1/labels/clans") do |req|
         req.params[:limit] = _limit if _limit
 end

  if status
         res.status
  else
         val = res.body
         convert = JSON.parse(val)

         end
      end
get_LabelPlayer(_limit:false, status: false) click to toggle source

This method gets Labels for the Player Profile.

# File lib/cocRb/labels.rb, line 42
def self.get_LabelPlayer(_limit:false, status: false)
        get
        res = @conn.get("v1/labels/players") do |req|
        req.params[:limit] = _limit if _limit
end

  if status
         res.status
  else
         val = res.body
         convert = JSON.parse(val)
    end
 end