class Ingenico::Connect::SDK::Domain::Product::RangeValidator
Attributes
max_value[RW]
min_value[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/product/range_validator.rb, line 27 def from_hash(hash) super if hash.has_key? 'maxValue' @max_value = hash['maxValue'] end if hash.has_key? 'minValue' @min_value = hash['minValue'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/product/range_validator.rb, line 20 def to_h hash = super hash['maxValue'] = @max_value unless @max_value.nil? hash['minValue'] = @min_value unless @min_value.nil? hash end