lib/freewifi.rb in freewifi-0.1.0 vs lib/freewifi.rb in freewifi-0.1.1

- old
+ new

@@ -1,8 +1,22 @@ require "freewifi/version" module Freewifi # Your code goes here... - def self.hi - puts "Hello world!" + def initialize(hub1ip, hub2ip, username_hub, password_hub) + @mtik_hub1_ip = hub1ip + @mtik_hub2_ip = hub2ip + @user_hub = username_hub + @password_hub = password_hub end + + def self.init(hub1ip, hub2ip, username, password) + #@@mtik_hub1_ip = hub1ip + end + + def add_eoip_for_mikr_hub(bridge_name, ap_ip_address, tunnel_id, tunnel_name) + newhub = NEWhub.new + newhub.add_eoip_for_mikr(bridge_name, ap_ip_address, tunnel_id, tunnel_name, @mtik_hub1_ip, @mtik_hub2_ip, @user_hub, @password_hub) + end end + +