Sha256: 5d7707668ac9035ea5d5c46703048fa5799c6b7d6cad308fa5b33df75d6ae82e

Contents?: true

Size: 621 Bytes

Versions: 9

Compression:

Stored size: 621 Bytes

Contents

require "fsr/app"
module FSR
  module Cmd
    class ValetInfo < Command

      def initialize(fs_socket = nil)
        @fs_socket = fs_socket # FSR::CommandSocket obj
      end

      # Send the command to the event socket, using bgapi by default.
      def run(api_method = :api)
        orig_command = "%s %s" % [api_method, raw]
        Log.debug "saying #{orig_command}"
        @fs_socket.say(orig_command)
      end

      # This method builds the API command to send to the freeswitch event socket
      def raw
        orig_command = "valet_info"
      end
    end

    register(:valet_info, ValetInfo)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
freeswitcher-0.8.0 lib/fsr/cmd/valet_info.rb
freeswitcher-0.7.1 lib/fsr/cmd/valet_info.rb
freeswitcher-0.7.0 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.18 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.17 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.16 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.15 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.14 lib/fsr/cmd/valet_info.rb
freeswitcher-0.6.13 lib/fsr/cmd/valet_info.rb