Class: Gorillib::Factory::IntTimeFactory

Inherits:
EpochTimeFactory show all
Defined in:
lib/gorillib/model/type/extended.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ConvertingFactory

#receive

Methods inherited from BaseFactory

blankish?, #blankish?, #initialize, native?, #native?, #receive, #typename

Constructor Details

This class inherits a constructor from Gorillib::Factory::BaseFactory

Class Method Details

.typenameObject



55
# File 'lib/gorillib/model/type/extended.rb', line 55

def self.typename() :int_time ; end

Instance Method Details

#convert(obj) ⇒ Object



58
59
60
61
# File 'lib/gorillib/model/type/extended.rb', line 58

def convert(obj)
  result = super
  result.nil? ? nil : result.to_i
end