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

Version Path
flickrmocks-0.8.15 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.14 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.13 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.12 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.11 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.10 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.9 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.8 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.6 lib/flickr_mocks/api/helpers.rb
flickrmocks-0.8.5 lib/flickr_mocks/api/helpers.rb