module Postmates::Utils

Public Instance Methods

timeify(timestamp) click to toggle source
# File lib/postmates/utils.rb, line 10
def timeify(timestamp)
  DateTime.iso8601 timestamp if timestamp
end
urlify(href) click to toggle source
# File lib/postmates/utils.rb, line 6
def urlify(href)
  URI(href) if href
end