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

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

This is a JSON template for a push token ID resource.

Defined Under Namespace

Classes: Ios

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) ⇒ PushTokenId

Returns a new instance of PushTokenId.



2745
2746
2747
# File 'generated/google/apis/games_v1/classes.rb', line 2745

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

Instance Attribute Details

#iosGoogle::Apis::GamesV1::PushTokenId::Ios

A push token ID for iOS devices. Corresponds to the JSON property ios



2737
2738
2739
# File 'generated/google/apis/games_v1/classes.rb', line 2737

def ios
  @ios
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#pushTokenId. Corresponds to the JSON property kind

Returns:

  • (String)


2743
2744
2745
# File 'generated/google/apis/games_v1/classes.rb', line 2743

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2750
2751
2752
2753
# File 'generated/google/apis/games_v1/classes.rb', line 2750

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