Sha256: 1876a295b279fe53c06b43de0bfcc2c3a6d319c72c9abf3c6519d7d8423a6c29
Contents?: true
Size: 395 Bytes
Versions: 10
Compression:
Stored size: 395 Bytes
Contents
module FlickrMocks class Api # default control values def self.default(value) Api.defaults[value.to_sym] end def self.time(date=nil) begin date = Chronic.parse(date).strftime('%Y-%m-%d') date ? date : Chronic.parse('yesterday').strftime('%Y-%m-%d') rescue Chronic.parse('yesterday').strftime('%Y-%m-%d') end end end end
Version data entries
10 entries across 10 versions & 1 rubygems