Class: ODDB::View::TestLogo::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/logo.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSession) initialize(function_called = nil, enabled = true)

A new instance of StubSession



20
21
22
23
24
# File 'test/test_view/logo.rb', line 20

def initialize(function_called=nil, enabled=true)
  @function_called = function_called
  @enabled = enabled
  @attributes = {}
end

Instance Attribute Details

- (Object) attributes(key)

Returns the value of attribute attributes



18
19
20
# File 'test/test_view/logo.rb', line 18

def attributes(key)
  @attributes
end

- (Object) enabled

Returns the value of attribute enabled



18
19
20
# File 'test/test_view/logo.rb', line 18

def enabled
  @enabled
end

- (Object) function_called (readonly)

Returns the value of attribute function_called



19
20
21
# File 'test/test_view/logo.rb', line 19

def function_called
  @function_called
end

Instance Method Details

- (Boolean) enabled?(logo, default = nil)

Returns:

  • (Boolean)


31
32
33
# File 'test/test_view/logo.rb', line 31

def enabled?(, default=nil)
  @enabled
end

- (Object) lookandfeel



28
29
30
# File 'test/test_view/logo.rb', line 28

def lookandfeel
  self
end

- (Object) lookup(arg)



40
41
# File 'test/test_view/logo.rb', line 40

def lookup(arg)
end

- (Object) resource(arg)



34
35
36
# File 'test/test_view/logo.rb', line 34

def resource(arg)
  @function_called = 'not localized'
end

- (Object) resource_localized(arg)



37
38
39
# File 'test/test_view/logo.rb', line 37

def resource_localized(arg)
 @function_called = "localized"
end

- (Object) state



42
43
44
# File 'test/test_view/logo.rb', line 42

def state
  self
end

- (Object) zone



45
46
47
# File 'test/test_view/logo.rb', line 45

def zone
  'zone'
end