Get undefined method when trying to invoke a class in my lib

I have an application to generate a metrics chart online.

My controller has a snippet like this:

def generate_metrics_graph

ts = TelnetServer.new
ts.buildtimearray(“2006-09-07-05-00”)

end

telnet_server.rb has the method like so:
Class TelnetServer


def buildtimearray(starttime)


end


end

Whenever I click on my button to execute generate_metrics_graph

I get this: undefined method `buildtimearray’ for
#TelnetServer:0x38fbc00

I think I’m missing something obvious here, but I don’t know what it is.
Any help would be greatly appreciated.

Thx
Noah

Where in your application are you including telnet_server.rb? Seems like
it might not be included in your code so it can’t access the method.

Tamim A. wrote:

Where in your application are you including telnet_server.rb? Seems like
it might not be included in your code so it can’t access the method.

I have a require “telnet_server” at the top of my controller. It seems
to instantiate the class okay. When I do tsmethods = ts.methods and
then tsmethods.each {|tsmethod| puts tsmethod} none of my methods appear
in the list.