Class: EN14960::CalculatorResponse
- Inherits:
-
T::Struct
- Object
- T::Struct
- EN14960::CalculatorResponse
- Extended by:
- T::Sig
- Defined in:
- lib/en14960/models/calculator_response.rb
Overview
Data class for calculator responses Provides a consistent structure for all calculator results
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
26 27 28 |
# File 'lib/en14960/models/calculator_response.rb', line 26 def as_json to_h end |
#to_h ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/en14960/models/calculator_response.rb', line 17 def to_h { value: value, value_suffix: value_suffix, breakdown: breakdown } end |