Class: ODDB::View::StubPointerStepsSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubPointerStepsSession) initialize

A new instance of StubPointerStepsSession



46
47
48
# File 'test/test_view/pointersteps.rb', line 46

def initialize
  @state = StubPointerStepsState.new
end

Instance Attribute Details

- (Object) app (readonly)

Returns the value of attribute app



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

def app
  @app
end

- (Object) state (readonly)

Returns the value of attribute state



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

def state
  @state
end

Instance Method Details

- (Object) _event_url(*args)



64
65
66
# File 'test/test_view/pointersteps.rb', line 64

def _event_url(*args)
  (['http://www.oddb.org/de/gcc'] + args).join('/')
end

- (Boolean) allowed?(key, data)

Returns:

  • (Boolean)


49
50
51
# File 'test/test_view/pointersteps.rb', line 49

def allowed?(key, data)
  true
end

- (Object) attributes(key)



52
53
54
# File 'test/test_view/pointersteps.rb', line 52

def attributes(key)
  {}
end

- (Object) direct_event



58
59
60
# File 'test/test_view/pointersteps.rb', line 58

def direct_event
  'bon'
end

- (Boolean) disabled?(key)

Returns:

  • (Boolean)


61
62
63
# File 'test/test_view/pointersteps.rb', line 61

def disabled?(key)
  false
end

- (Boolean) enabled?(key)

Returns:

  • (Boolean)


55
56
57
# File 'test/test_view/pointersteps.rb', line 55

def enabled?(key)
  true
end

- (Object) language



67
68
69
# File 'test/test_view/pointersteps.rb', line 67

def language
  'de'
end

- (Object) lookandfeel



70
71
72
# File 'test/test_view/pointersteps.rb', line 70

def lookandfeel
  self
end

- (Object) lookup(key)



73
74
75
# File 'test/test_view/pointersteps.rb', line 73

def lookup(key)
  key.to_s.capitalize unless /_title$/.match(key.to_s)
end

- (Object) user_agent



76
77
78
# File 'test/test_view/pointersteps.rb', line 76

def user_agent
  'TEST'
end

- (Object) zone



79
80
81
# File 'test/test_view/pointersteps.rb', line 79

def zone
  'drugs'
end