Class: QueueIt::RequestValidationResult
- Inherits:
-
Object
- Object
- QueueIt::RequestValidationResult
- Defined in:
- lib/queueit_knownuserv3/models.rb
Instance Attribute Summary collapse
-
#actionName ⇒ Object
Returns the value of attribute actionName.
-
#actionType ⇒ Object
readonly
Returns the value of attribute actionType.
-
#eventId ⇒ Object
readonly
Returns the value of attribute eventId.
-
#isAjaxResult ⇒ Object
Returns the value of attribute isAjaxResult.
-
#queueId ⇒ Object
readonly
Returns the value of attribute queueId.
-
#redirectType ⇒ Object
readonly
Returns the value of attribute redirectType.
-
#redirectUrl ⇒ Object
readonly
Returns the value of attribute redirectUrl.
Instance Method Summary collapse
- #doRedirect ⇒ Object
- #getAjaxQueueRedirectHeaderKey ⇒ Object
- #getAjaxRedirectUrl ⇒ Object
-
#initialize(actionType, eventId, queueId, redirectUrl, redirectType, actionName) ⇒ RequestValidationResult
constructor
A new instance of RequestValidationResult.
Constructor Details
#initialize(actionType, eventId, queueId, redirectUrl, redirectType, actionName) ⇒ RequestValidationResult
Returns a new instance of RequestValidationResult.
103 104 105 106 107 108 109 110 |
# File 'lib/queueit_knownuserv3/models.rb', line 103 def initialize(actionType, eventId, queueId, redirectUrl, redirectType, actionName) @actionType = actionType @eventId = eventId @queueId = queueId @redirectUrl = redirectUrl @redirectType = redirectType @actionName = actionName end |
Instance Attribute Details
#actionName ⇒ Object
Returns the value of attribute actionName.
100 101 102 |
# File 'lib/queueit_knownuserv3/models.rb', line 100 def actionName @actionName end |
#actionType ⇒ Object (readonly)
Returns the value of attribute actionType.
95 96 97 |
# File 'lib/queueit_knownuserv3/models.rb', line 95 def actionType @actionType end |
#eventId ⇒ Object (readonly)
Returns the value of attribute eventId.
96 97 98 |
# File 'lib/queueit_knownuserv3/models.rb', line 96 def eventId @eventId end |
#isAjaxResult ⇒ Object
Returns the value of attribute isAjaxResult.
101 102 103 |
# File 'lib/queueit_knownuserv3/models.rb', line 101 def isAjaxResult @isAjaxResult end |
#queueId ⇒ Object (readonly)
Returns the value of attribute queueId.
97 98 99 |
# File 'lib/queueit_knownuserv3/models.rb', line 97 def queueId @queueId end |
#redirectType ⇒ Object (readonly)
Returns the value of attribute redirectType.
99 100 101 |
# File 'lib/queueit_knownuserv3/models.rb', line 99 def redirectType @redirectType end |
#redirectUrl ⇒ Object (readonly)
Returns the value of attribute redirectUrl.
98 99 100 |
# File 'lib/queueit_knownuserv3/models.rb', line 98 def redirectUrl @redirectUrl end |
Instance Method Details
#doRedirect ⇒ Object
112 113 114 |
# File 'lib/queueit_knownuserv3/models.rb', line 112 def doRedirect return !Utils.isNilOrEmpty(@redirectUrl) end |
#getAjaxQueueRedirectHeaderKey ⇒ Object
116 117 118 |
# File 'lib/queueit_knownuserv3/models.rb', line 116 def getAjaxQueueRedirectHeaderKey return "x-queueit-redirect" end |
#getAjaxRedirectUrl ⇒ Object
120 121 122 123 124 125 |
# File 'lib/queueit_knownuserv3/models.rb', line 120 def getAjaxRedirectUrl if !Utils.isNilOrEmpty(@redirectUrl) return Utils.urlEncode(@redirectUrl) end return "" end |