Class: RubyAsterisk::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-asterisk/response_parser.rb

Overview

Class for parsing response coming from Asterisk

Class Method Summary collapse

Class Method Details

.parse(raw_response, type) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/ruby-asterisk/response_parser.rb', line 10

def self.parse(raw_response, type)
  if PARSE_DATA.include?(type)
    self._parse_objects(raw_response, PARSE_DATA[type])
  else
    raw_response
  end
end