Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `new' for LibertyReserve:Module #1

Open
blap opened this issue Apr 9, 2012 · 1 comment
Open

NoMethodError: undefined method `new' for LibertyReserve:Module #1

blap opened this issue Apr 9, 2012 · 1 comment

Comments

@blap
Copy link

blap commented Apr 9, 2012

Hi!

I tried to use in ruby 1.9.3 in windows 7:

require "liberty_reserve"
lr =LibertyReserve.new('get_history','XXX','U111111')

And I got the error:

NoMethodError: undefined method new' for LibertyReserve:Module from (irb):2 from C:/Ruby193/bin/irb:12:in

'

Any help?

@ChristopheBelpaire
Copy link
Owner

Hello,
I don't have any problem to load the library.
But it seems that you have a module called liberty_reserve somewhere.
My stuff is a class, so it seems you loaded the wrong library.

>> require 'liberty_reserve'
=> true
>> LibertyReserve.new('test','pwd','123')
=> #<LibertyReserve:0x1004c14d0 @api_name="test", @account_id="123", @api_pwd="pwd">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants