Class: Google::Apis::WalletobjectsV1::DownloadParameters

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

Overview

Parameters specific to media downloads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DownloadParameters

Returns a new instance of DownloadParameters.



1249
1250
1251
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1249

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

Instance Attribute Details

#allow_gzip_compressionBoolean Also known as: allow_gzip_compression?

A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous ( hence, does not guarantee compression) which allows Scotty to GZip the response to the client. Corresponds to the JSON property allowGzipCompression

Returns:

  • (Boolean)


1239
1240
1241
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1239

def allow_gzip_compression
  @allow_gzip_compression
end

#ignore_rangeBoolean Also known as: ignore_range?

Determining whether or not Apiary should skip the inclusion of any Content- Range header on its response to Scotty. Corresponds to the JSON property ignoreRange

Returns:

  • (Boolean)


1246
1247
1248
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1246

def ignore_range
  @ignore_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1254
1255
1256
1257
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1254

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