Class: Portage::Ucp::PriceRange

Inherits:
Data
  • Object
show all
Defined in:
lib/portage/ucp/value_objects.rb

Overview

schemas/shopping/types/price_range.json

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#maxObject (readonly)

Returns the value of attribute max

Returns:

  • (Object)

    the current value of max



19
20
21
# File 'lib/portage/ucp/value_objects.rb', line 19

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



19
20
21
# File 'lib/portage/ucp/value_objects.rb', line 19

def min
  @min
end

Instance Method Details

#to_wire_hObject



20
# File 'lib/portage/ucp/value_objects.rb', line 20

def to_wire_h = { "min" => min.to_wire_h, "max" => max.to_wire_h }