Class: ODDB::State::Admin::TestRootState::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/admin/root.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) user_input(*keys)

Returns the value of attribute user_input



40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'test/test_state/admin/root.rb', line 40

def user_input(*keys)
  if(keys.size > 1)
    res = {}
    keys.each { |key|
      res.store(key, user_input(key))
    }
    res
  else
    key = keys.first
    (@user_input ||= {
      :pointer =>  StubPointer.new
    })[key]
  end
end

Instance Method Details

- (Object) logout



55
56
# File 'test/test_state/admin/root.rb', line 55

def logout
end