Class: CandyCheck::AppStore::VerificationFailure
- Inherits:
-
Object
- Object
- CandyCheck::AppStore::VerificationFailure
- Defined in:
- lib/candy_check/app_store/verification_failure.rb
Overview
Represents a failing call against the verification server
Instance Attribute Summary collapse
-
#code ⇒ Integer
readonly
The code of the failure.
-
#message ⇒ String
readonly
The message of the failure.
Class Method Summary collapse
-
.fetch(code) ⇒ VerificationFailure
Gets a known failure or build an unknown failure without description.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ VerificationFailure
constructor
Initializes a new instance which bases on a JSON result from Apple servers.
Constructor Details
#initialize(code, message) ⇒ VerificationFailure
Initializes a new instance which bases on a JSON result from Apple servers
15 16 17 18 |
# File 'lib/candy_check/app_store/verification_failure.rb', line 15 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Integer (readonly)
Returns the code of the failure.
6 7 8 |
# File 'lib/candy_check/app_store/verification_failure.rb', line 6 def code @code end |
#message ⇒ String (readonly)
Returns the message of the failure.
9 10 11 |
# File 'lib/candy_check/app_store/verification_failure.rb', line 9 def @message end |
Class Method Details
.fetch(code) ⇒ VerificationFailure
Gets a known failure or build an unknown failure without description
25 26 27 28 29 |
# File 'lib/candy_check/app_store/verification_failure.rb', line 25 def fetch(code) known.fetch(code) do fallback(code) end end |