Class: Outbound::Result
Constant Summary
Constants included from Defaults
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#received_call ⇒ Object
Returns the value of attribute received_call.
Instance Method Summary collapse
- #campaign_id_error? ⇒ Boolean
- #connection_error? ⇒ Boolean
- #event_name_error? ⇒ Boolean
- #init_error? ⇒ Boolean
-
#initialize(error, received_call) ⇒ Result
constructor
A new instance of Result.
- #platform_error? ⇒ Boolean
- #success? ⇒ Boolean
- #token_error? ⇒ Boolean
- #user_id_error? ⇒ Boolean
Constructor Details
#initialize(error, received_call) ⇒ Result
Returns a new instance of Result.
114 115 116 117 |
# File 'lib/outbound.rb', line 114 def initialize(error, received_call) @error = error @received_call = received_call end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
119 120 121 |
# File 'lib/outbound.rb', line 119 def error @error end |
#received_call ⇒ Object
Returns the value of attribute received_call.
120 121 122 |
# File 'lib/outbound.rb', line 120 def received_call @received_call end |
Instance Method Details
#campaign_id_error? ⇒ Boolean
150 151 152 |
# File 'lib/outbound.rb', line 150 def campaign_id_error? return @error == Outbound::ERROR_CAMPAIGN_IDS end |
#connection_error? ⇒ Boolean
134 135 136 |
# File 'lib/outbound.rb', line 134 def connection_error? return @error == Outbound::ERROR_CONNECTION end |
#event_name_error? ⇒ Boolean
130 131 132 |
# File 'lib/outbound.rb', line 130 def event_name_error? return @error == Outbound::ERROR_EVENT_NAME end |
#init_error? ⇒ Boolean
138 139 140 |
# File 'lib/outbound.rb', line 138 def init_error? return @error == Outbound::ERROR_INIT end |
#platform_error? ⇒ Boolean
146 147 148 |
# File 'lib/outbound.rb', line 146 def platform_error? return @error == Outbound::ERROR_PLATFORM end |
#success? ⇒ Boolean
122 123 124 |
# File 'lib/outbound.rb', line 122 def success? return @received_call && @error == nil end |
#token_error? ⇒ Boolean
142 143 144 |
# File 'lib/outbound.rb', line 142 def token_error? return @error == Outbound::ERROR_TOKEN end |
#user_id_error? ⇒ Boolean
126 127 128 |
# File 'lib/outbound.rb', line 126 def user_id_error? return @error == Outbound::ERROR_USER_ID end |