Method: OData::Properties::Integer#value
- Defined in:
- lib/odata/properties/integer.rb
#value ⇒ Integer?
Returns the property value, properly typecast
9 10 11 12 13 14 15 |
# File 'lib/odata/properties/integer.rb', line 9 def value if (@value.nil? || @value.empty?) && allows_nil? nil else @value.to_i end end |