Class: Gorillib::Factory::IntTimeFactory
- Inherits:
-
EpochTimeFactory
- Object
- BaseFactory
- ConvertingFactory
- EpochTimeFactory
- Gorillib::Factory::IntTimeFactory
- Defined in:
- lib/gorillib/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
59 |
# File 'lib/gorillib/type/extended.rb', line 59 def self.typename() :int_time ; end |
Instance Method Details
#convert(obj) ⇒ Object
62 63 64 65 |
# File 'lib/gorillib/type/extended.rb', line 62 def convert(obj) result = super result.nil? ? nil : result.to_i end |