Sha256: cb4b75d0a3c492ec5c9e14a89e31c3cc4a90f7277b55f9707924455b2cb26700
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
module OData4 module Properties # Defines common behavior for OData4 numeric types. module Number private def validate(value) if value > max_value || value < min_value raise ::ArgumentError, "Value is outside accepted range: #{min_value} to #{max_value}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
odata4-0.7.0 | lib/odata4/properties/number.rb |