Class: EnvatoOptimiser::TotalImageWeightCheck
- Defined in:
- lib/envato_optimiser/checks/total_image_weight_check.rb
Instance Method Summary collapse
-
#initialize(image_urls) ⇒ Nothing
constructor
Initialize a total image weight check.
-
#to_h ⇒ Hash
Format the results into a usable Hash.
Constructor Details
#initialize(image_urls) ⇒ Nothing
Initialize a total image weight check.
9 10 11 12 |
# File 'lib/envato_optimiser/checks/total_image_weight_check.rb', line 9 def initialize(image_urls) @total_image_weight = 0 get_total_image_weight(image_urls) end |
Instance Method Details
#to_h ⇒ Hash
Format the results into a usable Hash.
17 18 19 20 21 |
# File 'lib/envato_optimiser/checks/total_image_weight_check.rb', line 17 def to_h { :total_image_weight => @total_image_weight } end |