Class: OBIX::Types::Integer
Instance Method Summary collapse
-
#cast(value) ⇒ Object
Cast the given value to an integer.
Methods inherited from Type
Constructor Details
This class inherits a constructor from OBIX::Types::Type
Instance Method Details
#cast(value) ⇒ Object
Cast the given value to an integer.
value - Any object that responds to ‘to_i`.
Returns an integer.
11 12 13 |
# File 'lib/obix/types/integer.rb', line 11 def cast value value.to_i end |