Sha256: 21424026799277b48c16823c50025f5b209123c39dffc869b1fa9d88f4406986

Contents?: true

Size: 496 Bytes

Versions: 20

Compression:

Stored size: 496 Bytes

Contents

require 'urbanairship/util'


module Urbanairship
  module Push
    module Schedule
      # Select a date and time for Scheduled Push
      def scheduled_time(datetime)
        payload(:scheduled_time, datetime)
      end

      # Select a local date and time for Scheduled Push
      def local_scheduled_time(datetime)
        payload(:local_scheduled_time, datetime)
      end

      private

      def payload(name, time)
        { name => Util.time_format(time) }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
urbanairship-5.7.0 lib/urbanairship/push/schedule.rb
urbanairship-5.6.1 lib/urbanairship/push/schedule.rb
urbanairship-5.6.0 lib/urbanairship/push/schedule.rb
urbanairship-5.5.1 lib/urbanairship/push/schedule.rb
urbanairship-5.5.0 lib/urbanairship/push/schedule.rb
urbanairship-5.4.0 lib/urbanairship/push/schedule.rb
urbanairship-5.3.0 lib/urbanairship/push/schedule.rb
urbanairship-5.2.0 lib/urbanairship/push/schedule.rb
urbanairship-5.0.1 lib/urbanairship/push/schedule.rb
urbanairship-5.0.0 lib/urbanairship/push/schedule.rb
urbanairship-4.1.1 lib/urbanairship/push/schedule.rb
urbanairship-4.1.0 lib/urbanairship/push/schedule.rb
urbanairship-4.0.0 lib/urbanairship/push/schedule.rb
urbanairship-3.2.4 lib/urbanairship/push/schedule.rb
urbanairship-3.2.3 lib/urbanairship/push/schedule.rb
urbanairship-3.2.2 lib/urbanairship/push/schedule.rb
urbanairship-3.2.1 lib/urbanairship/push/schedule.rb
urbanairship-3.2.0 lib/urbanairship/push/schedule.rb
urbanairship-3.1.1 lib/urbanairship/push/schedule.rb
urbanairship-3.1.0 lib/urbanairship/push/schedule.rb