Class: Google::Apis::BooksV1::Volume::AccessInfo::Epub

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

Overview

Information about epub content. (In LITE projection.)

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

Returns a new instance of Epub.



2848
2849
2850
# File 'generated/google/apis/books_v1/classes.rb', line 2848

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

Instance Attribute Details

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

Returns:

  • (String)


2834
2835
2836
# File 'generated/google/apis/books_v1/classes.rb', line 2834

def acs_token_link
  @acs_token_link
end

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

Returns:

  • (String)


2839
2840
2841
# File 'generated/google/apis/books_v1/classes.rb', line 2839

def download_link
  @download_link
end

#is_availableBoolean Also known as: is_available?

Is a flowing text epub available either as public domain or for purchase. (In LITE projection.) Corresponds to the JSON property isAvailable

Returns:

  • (Boolean)


2845
2846
2847
# File 'generated/google/apis/books_v1/classes.rb', line 2845

def is_available
  @is_available
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2853
2854
2855
2856
2857
# File 'generated/google/apis/books_v1/classes.rb', line 2853

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