Class: Worldline::Connect::SDK::V1::Domain::RangeValidator
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::RangeValidator
- Defined in:
- lib/worldline/connect/sdk/v1/domain/range_validator.rb
Instance Attribute Summary collapse
-
#max_value ⇒ Integer
The current value of max_value.
-
#min_value ⇒ Integer
The current value of min_value.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#max_value ⇒ Integer
Returns the current value of max_value.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/range_validator.rb', line 14 def max_value @max_value end |
#min_value ⇒ Integer
Returns the current value of min_value.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/range_validator.rb', line 14 def min_value @min_value end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/worldline/connect/sdk/v1/domain/range_validator.rb', line 28 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 ⇒ Hash
21 22 23 24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/range_validator.rb', line 21 def to_h hash = super hash['maxValue'] = @max_value unless @max_value.nil? hash['minValue'] = @min_value unless @min_value.nil? hash end |