Class: Google::Apis::BooksV1::Volume::AccessInfo::Pdf

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

Overview

Information about pdf content. (In LITE projection.)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Pdf

Returns a new instance of Pdf.



3249
3250
3251
# File 'lib/google/apis/books_v1/classes.rb', line 3249

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

Instance Attribute Details

URL to retrieve ACS token for pdf download. (In LITE projection.) Corresponds to the JSON property acsTokenLink

Returns:

  • (String)


3235
3236
3237
# File 'lib/google/apis/books_v1/classes.rb', line 3235

def acs_token_link
  @acs_token_link
end

URL to download pdf. (In LITE projection.) Corresponds to the JSON property downloadLink

Returns:

  • (String)


3240
3241
3242
# File 'lib/google/apis/books_v1/classes.rb', line 3240

def download_link
  @download_link
end

#is_availableBoolean Also known as: is_available?

Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.) Corresponds to the JSON property isAvailable

Returns:

  • (Boolean)


3246
3247
3248
# File 'lib/google/apis/books_v1/classes.rb', line 3246

def is_available
  @is_available
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3254
3255
3256
3257
3258
# File 'lib/google/apis/books_v1/classes.rb', line 3254

def update!(**args)
  @acs_token_link = args[:acs_token_link] if args.key?(:acs_token_link)
  @download_link = args[:download_link] if args.key?(:download_link)
  @is_available = args[:is_available] if args.key?(:is_available)
end