class Spaceship::UnexpectedResponse
Attributes
error_info[R]
Public Class Methods
new(error_info = nil)
click to toggle source
Calls superclass method
# File spaceship/lib/spaceship/errors.rb, line 68 def initialize(error_info = nil) super(error_info) @error_info = error_info end
Public Instance Methods
preferred_error_info()
click to toggle source
# File spaceship/lib/spaceship/errors.rb, line 73 def preferred_error_info return nil unless @error_info.kind_of?(Hash) && @error_info['resultString'] [ "Apple provided the following error info:", @error_info['resultString'], @error_info['userString'] ].compact.uniq # sometimes 'resultString' and 'userString' are the same value end