Class: Google::Apis::BooksV1::Volume::SaleInfo
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::SaleInfo
- 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
Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
Defined Under Namespace
Classes: ListPrice, Offer, RetailPrice
Instance Attribute Summary collapse
-
#buy_link ⇒ String
URL to purchase this volume on the Google Books site.
-
#country ⇒ String
The two-letter ISO_3166-1 country code for which this sale information is valid.
-
#is_ebook ⇒ Boolean
(also: #is_ebook?)
Whether or not this volume is an eBook (can be added to the My eBooks shelf).
-
#list_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::ListPrice
Suggested retail price.
-
#offers ⇒ Array<Google::Apis::BooksV1::Volume::SaleInfo::Offer>
Offers available for this volume (sales and rentals).
-
#on_sale_date ⇒ DateTime
The date on which this book is available for sale.
-
#retail_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice
The actual selling price of the book.
-
#saleability ⇒ String
Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SaleInfo
constructor
A new instance of SaleInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SaleInfo
Returns a new instance of SaleInfo.
3280 3281 3282 |
# File 'generated/google/apis/books_v1/classes.rb', line 3280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buy_link ⇒ String
URL to purchase this volume on the Google Books site. (In LITE projection)
Corresponds to the JSON property buyLink
3237 3238 3239 |
# File 'generated/google/apis/books_v1/classes.rb', line 3237 def buy_link @buy_link end |
#country ⇒ String
The two-letter ISO_3166-1 country code for which this sale information is
valid. (In LITE projection.)
Corresponds to the JSON property country
3243 3244 3245 |
# File 'generated/google/apis/books_v1/classes.rb', line 3243 def country @country end |
#is_ebook ⇒ Boolean Also known as: is_ebook?
Whether or not this volume is an eBook (can be added to the My eBooks shelf).
Corresponds to the JSON property isEbook
3248 3249 3250 |
# File 'generated/google/apis/books_v1/classes.rb', line 3248 def is_ebook @is_ebook end |
#list_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::ListPrice
Suggested retail price. (In LITE projection.)
Corresponds to the JSON property listPrice
3254 3255 3256 |
# File 'generated/google/apis/books_v1/classes.rb', line 3254 def list_price @list_price end |
#offers ⇒ Array<Google::Apis::BooksV1::Volume::SaleInfo::Offer>
Offers available for this volume (sales and rentals).
Corresponds to the JSON property offers
3259 3260 3261 |
# File 'generated/google/apis/books_v1/classes.rb', line 3259 def offers @offers end |
#on_sale_date ⇒ DateTime
The date on which this book is available for sale.
Corresponds to the JSON property onSaleDate
3264 3265 3266 |
# File 'generated/google/apis/books_v1/classes.rb', line 3264 def on_sale_date @on_sale_date end |
#retail_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice
The actual selling price of the book. This is the same as the suggested retail
or list price unless there are offers or discounts on this volume. (In LITE
projection.)
Corresponds to the JSON property retailPrice
3271 3272 3273 |
# File 'generated/google/apis/books_v1/classes.rb', line 3271 def retail_price @retail_price end |
#saleability ⇒ String
Whether or not this book is available for sale or offered for free in the
Google eBookstore for the country listed above. Possible values are FOR_SALE,
FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
Corresponds to the JSON property saleability
3278 3279 3280 |
# File 'generated/google/apis/books_v1/classes.rb', line 3278 def saleability @saleability end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 |
# File 'generated/google/apis/books_v1/classes.rb', line 3285 def update!(**args) @buy_link = args[:buy_link] if args.key?(:buy_link) @country = args[:country] if args.key?(:country) @is_ebook = args[:is_ebook] if args.key?(:is_ebook) @list_price = args[:list_price] if args.key?(:list_price) @offers = args[:offers] if args.key?(:offers) @on_sale_date = args[:on_sale_date] if args.key?(:on_sale_date) @retail_price = args[:retail_price] if args.key?(:retail_price) @saleability = args[:saleability] if args.key?(:saleability) end |