Sha256: 2854cb4890837d998e05d141e83d6d35f90b2f8ff72ed1fdfa33ae98982a8aaa

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

module ActiveGraph
  module Generators
    module GeneratedAttribute #:nodoc:
      def type_class
        case type.to_s.downcase
        when 'any' then 'any'
        when 'datetime' then 'DateTime'
        when 'date' then 'Date'
        when 'integer', 'number', 'fixnum' then 'Integer'
        when 'float' then 'Float'
        else
          'String'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activegraph-11.5.0.alpha.1 lib/active_graph/generators/generated_attribute.rb