class Ingenico::Direct::SDK::Domain::LengthValidator
@attr [Integer] max_length
@attr [Integer] min_length
Attributes
max_length[RW]
min_length[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/length_validator.rb, line 24 def from_hash(hash) super @max_length = hash['maxLength'] if hash.key? 'maxLength' @min_length = hash['minLength'] if hash.key? 'minLength' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/length_validator.rb, line 17 def to_h hash = super hash['maxLength'] = @max_length unless @max_length.nil? hash['minLength'] = @min_length unless @min_length.nil? hash end