Class: Gridspace::CallClient

Inherits:
BaseCommand show all
Defined in:
lib/gridspace/commands.rb

Overview

CallClient is a command to call a client id with a specific transcription URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#class_name, #to_json

Methods inherited from JSONable

#from_json!, #to_json

Constructor Details

#initialize(client_name, on_transcript = nil) ⇒ CallClient

Returns a new instance of CallClient.



66
67
68
69
# File 'lib/gridspace/commands.rb', line 66

def initialize client_name, on_transcript = nil
  @client_name = client_name
  @on_transcript = on_transcript unless on_transcript.nil?
end

Instance Attribute Details

#client_nameObject

Returns the value of attribute client_name.



65
66
67
# File 'lib/gridspace/commands.rb', line 65

def client_name
  @client_name
end

#on_transcriptObject

Returns the value of attribute on_transcript.



65
66
67
# File 'lib/gridspace/commands.rb', line 65

def on_transcript
  @on_transcript
end