Plivo ruby gem class conflicting

时间:2015-12-14 17:53:34

标签: ruby-on-rails ruby

I am using gem plivo.When I am including plivo library in my code, there are 2-3 class which are same which I am using and plivo using, so my class conflicting.

Is there any way to solve this in ruby?

1 个答案:

答案 0 :(得分:6)

您可以在包含plivo lib时使用命名空间。

例如:

module PlivoModule
    module Plivo
     #plivo code
    end
end

用作:PlivoModule::Plivo::RestAPI.new