Module: Sapphire::DSL::Data

Included in:
Sapphire
Defined in:
lib/sapphire/DSL/Data/Find.rb,
lib/sapphire/DSL/Data/Write.rb,
lib/sapphire/DSL/Data/Verify.rb,
lib/sapphire/DSL/Data/GetPageField.rb

Instance Method Summary collapse

Instance Method Details

#Find(query, &block) ⇒ Object



4
5
6
# File 'lib/sapphire/DSL/Data/Find.rb', line 4

def Find(query, &block)
  query.Execute block
end

#GetPageField(key) ⇒ Object



4
5
6
7
8
9
# File 'lib/sapphire/DSL/Data/GetPageField.rb', line 4

def GetPageField(key)

  return $page.Get(key) if $page.Contains key

  raise "Could not find control for: " + key + " for page " + $page.to_s
end

#Verify(instance) ⇒ Object



4
5
6
# File 'lib/sapphire/DSL/Data/Verify.rb', line 4

def Verify(instance)
  instance.Verify
end

#Write(query) ⇒ Object



4
5
6
# File 'lib/sapphire/DSL/Data/Write.rb', line 4

def Write(query)
  query.Execute
end