require "imperituroard/version" require 'imperituroard/phpipamdb' module Imperituroard class Error < StandardError; end def initialize() end def hhh(jjj) p jjj end # Your code goes here... end module Phpipam def test(ggg) p ggg end end class Pipam attr_accessor :username, :password, :ip, :database_class def initialize(username, password, ip) @username = username @password = password @ip = ip @database_class = Pdb.new("phpipam", username, password, ip, "3306") end def update_phpipam_rewr_msisdn(old_msisdn, new_msisdn) dst_num_exists = database_class.check_if_msisdn_exists(new_msisdn, "ipaddresses") if dst_num_exists == 0 database_class.update_database_rewrite_msisdn(old_msisdn, new_msisdn) "updated" else "failed" end end include Phpipam end