Class: Google::Apis::GamesV1::PushTokenId::Ios

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

A push token ID for iOS devices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Ios

Returns a new instance of Ios



2767
2768
2769
# File 'generated/google/apis/games_v1/classes.rb', line 2767

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#apns_device_tokenString

Device token supplied by an iOS system call to register for remote notifications. Encode this field as web-safe base64. Corresponds to the JSON property apns_device_token NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2759
2760
2761
# File 'generated/google/apis/games_v1/classes.rb', line 2759

def apns_device_token
  @apns_device_token
end

#apns_environmentString

Indicates whether this token should be used for the production or sandbox APNS server. Corresponds to the JSON property apns_environment

Returns:

  • (String)


2765
2766
2767
# File 'generated/google/apis/games_v1/classes.rb', line 2765

def apns_environment
  @apns_environment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2772
2773
2774
2775
# File 'generated/google/apis/games_v1/classes.rb', line 2772

def update!(**args)
  @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token)
  @apns_environment = args[:apns_environment] if args.key?(:apns_environment)
end