Sha256: 0919cf385b318c1d50d2a41a2e66161074c42e60c30ff579415bd78feb549bba

Contents?: true

Size: 1.7 KB

Versions: 233

Compression:

Stored size: 1.7 KB

Contents

require_relative 'tunes_base'

module Spaceship
  module Tunes
    class RecoveryDevice < TunesBase
      # @return (String) ID provided by Apple
      # @example
      #   "1801231651"
      attr_accessor :device_id

      # @return (String) The name of the device
      # @example
      #   "Felix Krause's iPhone 6"
      attr_accessor :name

      # @return (Bool) This device looks suspicious [add emoji here]
      #   this will probably always be true, otherwise the device
      #   doesn't show up
      # @example
      #   true
      attr_accessor :trusted

      # @return (Bool)
      # @example
      #   true
      attr_accessor :status

      # @return (String) Remote URL to an image representing this device
      #   This shows the attention to detail by Apple <3
      # @example
      #   "https://appleid.cdn-apple.com/static/deviceImages-5.0/iPhone/iPhone8,1-e4e7e8-dadcdb/online-sourcelist__3x.png"
      # @example
      #   "https://appleid.cdn-apple.com/appleauth/static/bin/cb2613252489/images/sms@3x.png"
      attr_accessor :device_image

      # @return (String)
      # @example
      #   "iPad Air"
      # @example
      #   nil # e.g. when it's a phone number
      attr_accessor :model_name

      # @return (String)
      # @example
      #   "79"
      attr_accessor :last_two_digits

      # @return (Number)
      # @example
      #   1446488271926
      attr_accessor :update_date

      attr_mapping(
        'id' => :device_id,
        'name' => :name,
        'trusted' => :trusted,
        'status' => :status,
        'imageLocation3x' => :device_image,
        'modelName' => :model_name,
        'lastTwoDigits' => :last_two_digits,
        'updateDate' => :update_date
      )
    end
  end
end

Version data entries

233 entries across 233 versions & 1 rubygems

Version Path
fastlane-2.101.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.100.1 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.100.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.99.1 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.99.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.98.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.97.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.1 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180521050117 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180520050019 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180519050103 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180518050116 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180517050058 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180516050022 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180515050025 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180514050029 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180513050015 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180512050121 spaceship/lib/spaceship/tunes/recovery_device.rb
fastlane-2.96.0.beta.20180511050050 spaceship/lib/spaceship/tunes/recovery_device.rb