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