Class: Facebook::SignedRequestVerifier::Result
- Inherits:
-
Data
- Object
- Data
- Facebook::SignedRequestVerifier::Result
- Defined in:
- app/services/facebook/signed_request_verifier.rb
Overview
Outcome of call. payload is the decoded JSON
hash when valid? is true, nil otherwise; error is a short reason
code on failure (suitable for log lines, not user-facing).
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#valid? ⇒ Object
readonly
Returns the value of attribute valid?.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
34 35 36 |
# File 'app/services/facebook/signed_request_verifier.rb', line 34 def error @error end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload
34 35 36 |
# File 'app/services/facebook/signed_request_verifier.rb', line 34 def payload @payload end |
#valid? ⇒ Object (readonly)
Returns the value of attribute valid?
34 35 36 |
# File 'app/services/facebook/signed_request_verifier.rb', line 34
def valid?
@valid?
end
|
Instance Method Details
#invalid? ⇒ Boolean
35 |
# File 'app/services/facebook/signed_request_verifier.rb', line 35 def invalid? = !valid? |