class Outbound::Result

Attributes

error[RW]
received_call[RW]

Public Class Methods

new(error, received_call) click to toggle source
# File lib/outbound.rb, line 114
def initialize(error, received_call)
  @error = error
  @received_call = received_call
end

Public Instance Methods

campaign_id_error?() click to toggle source
# File lib/outbound.rb, line 150
def campaign_id_error?
  return @error == Outbound::ERROR_CAMPAIGN_IDS
end
connection_error?() click to toggle source
# File lib/outbound.rb, line 134
def connection_error?
  return @error == Outbound::ERROR_CONNECTION
end
event_name_error?() click to toggle source
# File lib/outbound.rb, line 130
def event_name_error?
  return @error == Outbound::ERROR_EVENT_NAME
end
init_error?() click to toggle source
# File lib/outbound.rb, line 138
def init_error?
  return @error == Outbound::ERROR_INIT
end
platform_error?() click to toggle source
# File lib/outbound.rb, line 146
def platform_error?
  return @error == Outbound::ERROR_PLATFORM
end
success?() click to toggle source
# File lib/outbound.rb, line 122
def success?
  return @received_call && @error == nil
end
token_error?() click to toggle source
# File lib/outbound.rb, line 142
def token_error?
  return @error == Outbound::ERROR_TOKEN
end
user_id_error?() click to toggle source
# File lib/outbound.rb, line 126
def user_id_error?
  return @error == Outbound::ERROR_USER_ID
end