Class: Shields::Badge::Downloads::GemTotalDownloads
- Defined in:
- lib/shields/badge/downloads/gem_total_downloads.rb
Overview
Shield for RubyGem daily downloads
See: https://shields.io/badges/gem-total-downloads
Defined Under Namespace
Constant Summary
Constants inherited from Base
Base::BASE_URL, Base::HTTP_METHOD
Instance Attribute Summary
Attributes inherited from Base
#anchor_href, #anchor_params, #image_type, #label, #path_parameters, #query_parameters
Class Method Summary collapse
-
.anchor_href_template ⇒ Object
-
.api_template ⇒ Object
Formatted string specification template See: https://ruby-doc.org/3.4.1/String.html#method-i-25.
-
.label_text_template ⇒ Object
Methods inherited from Base
anchor_href_url, #format, img_src_url, #initialize, label_text
Constructor Details
This class inherits a constructor from Shields::Badge::Base
Class Method Details
.anchor_href_template ⇒ Object
27 28 29 |
# File 'lib/shields/badge/downloads/gem_total_downloads.rb', line 27 def anchor_href_template "https://rubygems.org/gems/%{gem}" end |
.api_template ⇒ Object
Formatted string specification template
See: https://ruby-doc.org/3.4.1/String.html#method-i-25
23 24 25 |
# File 'lib/shields/badge/downloads/gem_total_downloads.rb', line 23 def api_template "/gem/dt/%{gem}" end |
.label_text_template ⇒ Object
31 32 33 |
# File 'lib/shields/badge/downloads/gem_total_downloads.rb', line 31 def label_text_template "RubyGems Total Downloads" end |