Class: Google::Apis::WalletobjectsV1::JwtInsertResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JwtInsertResponse

Returns a new instance of JwtInsertResponse.



4382
4383
4384
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4382

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

Instance Attribute Details

#resourcesGoogle::Apis::WalletobjectsV1::Resources

Data that corresponds to the ids of the provided classes and objects in the JWT. resources will only include the non-empty arrays (i.e. if the JWT only includes eventTicketObjects, then that is the only field that will be present in resources). Corresponds to the JSON property resources



4374
4375
4376
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4374

def resources
  @resources
end

#save_uriString

A URI that, when opened, will allow the end user to save the object(s) identified in the JWT to their Google account. Corresponds to the JSON property saveUri

Returns:

  • (String)


4380
4381
4382
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4380

def save_uri
  @save_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4387
4388
4389
4390
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4387

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