Sha256: 7a9f740d71a7d4af5b3beb0ee933045a10f6cf66688e052838f061be4dba91ec

Contents?: true

Size: 848 Bytes

Versions: 1

Compression:

Stored size: 848 Bytes

Contents

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


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imperituroard-0.1.4 lib/imperituroard.rb