class Ably::Models::Stats::IntegerDefaultZero
IntegerDefaultZero
will always return an Integer object and will default to value 0 unless truthy
@api private
Public Class Methods
Source
# File lib/ably/models/stats_types.rb, line 56 def self.new(value) (value && value.to_i) || 0 end