Class: Avaya::DirList
- Inherits:
-
Object
- Object
- Avaya::DirList
- Defined in:
- lib/avaya/dir_list.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
Class Method Summary collapse
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ DirList
constructor
A new instance of DirList.
Constructor Details
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
3 4 5 |
# File 'lib/avaya/dir_list.rb', line 3 def directory @directory end |
Class Method Details
.get ⇒ Object
9 10 11 12 13 |
# File 'lib/avaya/dir_list.rb', line 9 def self.get dir_list = self.new dir_list.get end |
Instance Method Details
#get ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/avaya/dir_list.rb', line 15 def get list= [] directory.each do |row| row = row.split(",") list << { name: row[0], number: row[1] } end list end |