Class: LeapCli::Config::Manager::ConnectionList

Inherits:
Array
  • Object
show all
Defined in:
lib/leap_cli/config/manager.rb

Overview

CONNECTIONS

Instance Method Summary collapse

Methods inherited from Array

#deep_dup

Instance Method Details

#add(data = {}) ⇒ Object



273
274
275
276
277
278
279
# File 'lib/leap_cli/config/manager.rb', line 273

def add(data={})
  self << {
    "from" => data[:from],
    "to" => data[:to],
    "port" => data[:port]
  }
end