Class: ODDB::View::Drugs::TestResultList::StubSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) dictionary

Returns the value of attribute dictionary



117
118
119
# File 'test/test_view/drugs/resultlist.rb', line 117

def dictionary
  @dictionary
end

- (Object) pages

Returns the value of attribute pages



116
117
118
# File 'test/test_view/drugs/resultlist.rb', line 116

def pages
  @pages
end

Instance Method Details

- (Object) attributes(key)



118
119
120
# File 'test/test_view/drugs/resultlist.rb', line 118

def attributes(key)
  {}
end

- (Object) event_url(url, name)



121
122
# File 'test/test_view/drugs/resultlist.rb', line 121

def event_url(url, name)
end

- (Object) format_price(num)



137
138
139
# File 'test/test_view/drugs/resultlist.rb', line 137

def format_price(num)
  '678.90'
end

- (Object) language



123
124
# File 'test/test_view/drugs/resultlist.rb', line 123

def language()
end

- (Object) lookandfeel



128
129
130
# File 'test/test_view/drugs/resultlist.rb', line 128

def lookandfeel
  self
end

- (Object) lookup(key, *args)



125
126
127
# File 'test/test_view/drugs/resultlist.rb', line 125

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

- (Object) state



131
132
133
# File 'test/test_view/drugs/resultlist.rb', line 131

def state()
  self
end

- (Object) user



134
135
136
# File 'test/test_view/drugs/resultlist.rb', line 134

def user
  RootUser.new
end