Sha256: f4cf1d3bbac495b6f5dc0ffcd1811f9815517f30bef57a8e74995f258f92d372

Contents?: true

Size: 214 Bytes

Versions: 3

Compression:

Stored size: 214 Bytes

Contents

# frozen_string_literal: true

module Hahamut
  module Attribute
    # Timestamp Attribute
    class Timestamp < Base
      def value
        @value ||= Time.at(before_cast.to_i / 1000)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hahamut-0.1.2 lib/hahamut/attribute/timestamp.rb
hahamut-0.1.1 lib/hahamut/attribute/timestamp.rb
hahamut-0.1.0 lib/hahamut/attribute/timestamp.rb