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