class States::Dsl::Wait

Public Class Methods

new(options={}) click to toggle source
# File lib/states/dsl/wait.rb, line 4
def initialize(options={})
end

Public Instance Methods

seconds(seconds) click to toggle source
# File lib/states/dsl/wait.rb, line 7
def seconds(seconds)
  @seconds = seconds
end
seconds_path(path) click to toggle source
# File lib/states/dsl/wait.rb, line 11
def seconds_path(path)
  @seconds_path = path
end
serializable_hash() click to toggle source
# File lib/states/dsl/wait.rb, line 23
def serializable_hash
  h = {}
  if @seconds
    h["Seconds"] = @seconds
  elsif @seconds_path
    h["SecondsPath"] = @seconds_path
  elsif @timestamp
    h["Timestamp"] = @timestamp
  elsif @timestamp_path
    h["TimestampPath"] = @timestamp_path
  end
  h
end
timestamp(ts) click to toggle source
# File lib/states/dsl/wait.rb, line 15
def timestamp(ts)
  @timestamp = ts
end
timestamp_path(path) click to toggle source
# File lib/states/dsl/wait.rb, line 19
def timestamp_path(path)
  @timestamp_path = path
end