Class: ODDB::View::TestPager::StubSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) dictionary

Returns the value of attribute dictionary



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

def dictionary
  @dictionary
end

- (Object) event

Returns the value of attribute event



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

def event
  @event
end

- (Object) page

Returns the value of attribute page



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

def page
  @page
end

Instance Method Details

- (Object) attributes(key)



20
21
22
# File 'test/test_view/pager.rb', line 20

def attributes(key)
  {}
end

- (Boolean) disabled?(key)

Returns:

  • (Boolean)


23
24
25
# File 'test/test_view/pager.rb', line 23

def disabled?(key)
  false
end

- (Boolean) enabled?(key)

Returns:

  • (Boolean)


26
27
28
# File 'test/test_view/pager.rb', line 26

def enabled?(key)
  true
end

- (Object) event_url(event, values) Also known as: _event_url



29
30
31
32
33
34
# File 'test/test_view/pager.rb', line 29

def event_url(event, values)
  ([
    "http://www.oddb.org/de/gcc",
    event,
  ] + values.to_a.flatten ).join('/')
end

- (Object) lookandfeel



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

def lookandfeel
  self
end

- (Object) lookup(key, *args)



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

def lookup(key, *args)
  (@dictionary ||= {})[key].to_s
end

- (Object) state



36
37
38
# File 'test/test_view/pager.rb', line 36

def state
  self
end

- (Object) user_agent



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

def user_agent
  'TEST'
end