Class: Nylas::Types::IntegerType
- Defined in:
- lib/nylas/types.rb
Overview
Type for attributes represented as pure integers both within the API and in Ruby
Instance Method Summary collapse
Methods inherited from ValueType
#deseralize, #serialize, #serialize_for_api
Instance Method Details
#cast(value) ⇒ Object
136 137 138 139 140 |
# File 'lib/nylas/types.rb', line 136 def cast(value) return nil if value.nil? value.to_i end |