Sha256: e8a73de1c256cc064f6c625d8f71ca6eda22996b3a496b93eb273522cc17e55e

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module GoogleDataSource
  module DataSource
    class DataDate
      def initialize(date)
        @date = date
      end
    
      def as_json(options=nil)
        if @date
          "Date(#{@date.year}, #{@date.month-1}, #{@date.day})"
        else
          nil
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_data_source-0.7.6 lib/google_data_source/data_date.rb