class Ingenico::Direct::SDK::Domain::RegularExpressionValidator
@attr [String] regular_expression
Attributes
regular_expression[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/regular_expression_validator.rb, line 21 def from_hash(hash) super @regular_expression = hash['regularExpression'] if hash.key? 'regularExpression' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/regular_expression_validator.rb, line 15 def to_h hash = super hash['regularExpression'] = @regular_expression unless @regular_expression.nil? hash end