class Spaceship::Client::UnexpectedResponse

Attributes

error_info[R]

Public Class Methods

new(error_info = nil) click to toggle source
Calls superclass method
# File lib/spaceship/client.rb, line 56
def initialize(error_info = nil)
  super(error_info)
  @error_info = error_info
end

Public Instance Methods

preferred_error_info() click to toggle source
# File lib/spaceship/client.rb, line 61
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