Class: Gorillib::Factory::IntTimeFactory
- Inherits:
-
EpochTimeFactory
- Object
- BaseFactory
- ConvertingFactory
- EpochTimeFactory
- Gorillib::Factory::IntTimeFactory
- Defined in:
- lib/gorillib/model/type/extended.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ConvertingFactory
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
.typename ⇒ Object
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 |