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