Class: Zui::TreeShaker::Report
- Inherits:
-
Struct
- Object
- Struct
- Zui::TreeShaker::Report
- Defined in:
- lib/zui/tree_shaker.rb
Instance Attribute Summary collapse
-
#after_bytes ⇒ Object
Returns the value of attribute after_bytes.
-
#before_bytes ⇒ Object
Returns the value of attribute before_bytes.
-
#components ⇒ Object
Returns the value of attribute components.
-
#qml_modules ⇒ Object
Returns the value of attribute qml_modules.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
Instance Attribute Details
#after_bytes ⇒ Object
Returns the value of attribute after_bytes
32 33 34 |
# File 'lib/zui/tree_shaker.rb', line 32 def after_bytes @after_bytes end |
#before_bytes ⇒ Object
Returns the value of attribute before_bytes
32 33 34 |
# File 'lib/zui/tree_shaker.rb', line 32 def before_bytes @before_bytes end |
#components ⇒ Object
Returns the value of attribute components
32 33 34 |
# File 'lib/zui/tree_shaker.rb', line 32 def components @components end |
#qml_modules ⇒ Object
Returns the value of attribute qml_modules
32 33 34 |
# File 'lib/zui/tree_shaker.rb', line 32 def qml_modules @qml_modules end |
#warnings ⇒ Object
Returns the value of attribute warnings
32 33 34 |
# File 'lib/zui/tree_shaker.rb', line 32 def warnings @warnings end |
Instance Method Details
#saved_bytes ⇒ Object
34 |
# File 'lib/zui/tree_shaker.rb', line 34 def saved_bytes = before_bytes - after_bytes |
#to_h ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/zui/tree_shaker.rb', line 36 def to_h { "components" => components.map(&:to_s), "qml_modules" => qml_modules, "before_bytes" => before_bytes, "after_bytes" => after_bytes, "saved_bytes" => saved_bytes, "warnings" => warnings } end |