Class: SetAutoHangup
Instance Method Summary
collapse
#command, #command_error?, #message, #result, #return_code, #to_s
Constructor Details
#initialize(command, response) ⇒ SetAutoHangup
Returns a new instance of SetAutoHangup.
41
42
43
|
# File 'lib/ruby-agi/rs/set_auto_hangup.rb', line 41
def initialize(command, response)
super(command, response)
end
|
Instance Method Details
#error? ⇒ Boolean
61
62
63
|
# File 'lib/ruby-agi/rs/set_auto_hangup.rb', line 61
def error?
return command_error?
end
|
#failure? ⇒ Boolean
57
58
59
|
# File 'lib/ruby-agi/rs/set_auto_hangup.rb', line 57
def failure?
return (not success?)
end
|
#response ⇒ Object
65
66
67
|
# File 'lib/ruby-agi/rs/set_auto_hangup.rb', line 65
def response
return message
end
|
#success? ⇒ Boolean
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/ruby-agi/rs/set_auto_hangup.rb', line 45
def success?
if @is_success.nil?
if result == '0'
@is_success = true
else
@is_success = false
end
end
return @is_success
end
|