Class: Portage::Ucp::PriceRange
- Inherits:
-
Data
- Object
- Data
- Portage::Ucp::PriceRange
- Defined in:
- lib/portage/ucp/value_objects.rb
Overview
schemas/shopping/types/price_range.json
Instance Attribute Summary collapse
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
Instance Method Summary collapse
Instance Attribute Details
#max ⇒ Object (readonly)
Returns the value of attribute max
19 20 21 |
# File 'lib/portage/ucp/value_objects.rb', line 19 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min
19 20 21 |
# File 'lib/portage/ucp/value_objects.rb', line 19 def min @min end |
Instance Method Details
#to_wire_h ⇒ Object
20 |
# File 'lib/portage/ucp/value_objects.rb', line 20 def to_wire_h = { "min" => min.to_wire_h, "max" => max.to_wire_h } |