M
Marcelo Barbudas
Hi,
This question is based on another thread that helped me realize the
initial idea I had about a library format was not good.
How is it possible to mimic an ActiveRecord association like class
structure?
Something like:
Module Something
Class Main
def connection
end
end
Class Resource < Main
def method
call_resource
end
end
end
and being able to create something like
con = Main.new(user, pass)
result = con.resources.method
Thanks.
Sorry for opening another thread about this.
This question is based on another thread that helped me realize the
initial idea I had about a library format was not good.
How is it possible to mimic an ActiveRecord association like class
structure?
Something like:
Module Something
Class Main
def connection
end
end
Class Resource < Main
def method
call_resource
end
end
end
and being able to create something like
con = Main.new(user, pass)
result = con.resources.method
Thanks.
Sorry for opening another thread about this.