Sha256: 74874637669822f1c49cd7493da0d0cb808d38c143c5bd518466f3df143cda4c

Contents?: true

Size: 206 Bytes

Versions: 1

Compression:

Stored size: 206 Bytes

Contents

require 'uri'
require 'date'

module Postmates
  module Utils
    def urlify(href)
      URI(href) if href
    end

    def timeify(timestamp)
      DateTime.iso8601 timestamp if timestamp
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postmates-0.1.0 lib/postmates/utils.rb