Class: CocRb::Label
Class Method Summary collapse
- .getLabel_Clan(_limit: false, status: false) ⇒ Object
- .getLabel_Player(_limit: false, status: false) ⇒ Object
Methods inherited from Settings
Class Method Details
.getLabel_Clan(_limit: false, status: false) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/cocRb/labels.rb', line 54 def self.getLabel_Clan(_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 |
.getLabel_Player(_limit: false, status: false) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/cocRb/labels.rb', line 38 def self.getLabel_Player(_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 |