Class: Google::Apis::BooksV1::Volume::SaleInfo::Offer
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::SaleInfo::Offer
- 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
Defined Under Namespace
Classes: ListPrice, RentalDuration, RetailPrice
Instance Attribute Summary collapse
-
#finsky_offer_type ⇒ Fixnum
The finsky offer type (e.g., PURCHASE=0 RENTAL=3) Corresponds to the JSON property
finskyOfferType
. -
#giftable ⇒ Boolean
(also: #giftable?)
Indicates whether the offer is giftable.
-
#list_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::ListPrice
Offer list (=undiscounted) price in Micros.
-
#rental_duration ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration
The rental duration (for rental offers only).
-
#retail_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::RetailPrice
Offer retail (=discounted) price in Micros Corresponds to the JSON property
retailPrice
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Offer
constructor
A new instance of Offer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Offer
Returns a new instance of Offer.
3082 3083 3084 |
# File 'generated/google/apis/books_v1/classes.rb', line 3082 def initialize(**args) update!(**args) end |
Instance Attribute Details
#finsky_offer_type ⇒ Fixnum
The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
Corresponds to the JSON property finskyOfferType
3059 3060 3061 |
# File 'generated/google/apis/books_v1/classes.rb', line 3059 def finsky_offer_type @finsky_offer_type end |
#giftable ⇒ Boolean Also known as: giftable?
Indicates whether the offer is giftable.
Corresponds to the JSON property giftable
3064 3065 3066 |
# File 'generated/google/apis/books_v1/classes.rb', line 3064 def giftable @giftable end |
#list_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::ListPrice
Offer list (=undiscounted) price in Micros.
Corresponds to the JSON property listPrice
3070 3071 3072 |
# File 'generated/google/apis/books_v1/classes.rb', line 3070 def list_price @list_price end |
#rental_duration ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration
The rental duration (for rental offers only).
Corresponds to the JSON property rentalDuration
3075 3076 3077 |
# File 'generated/google/apis/books_v1/classes.rb', line 3075 def rental_duration @rental_duration end |
#retail_price ⇒ Google::Apis::BooksV1::Volume::SaleInfo::Offer::RetailPrice
Offer retail (=discounted) price in Micros
Corresponds to the JSON property retailPrice
3080 3081 3082 |
# File 'generated/google/apis/books_v1/classes.rb', line 3080 def retail_price @retail_price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3087 3088 3089 3090 3091 3092 3093 |
# File 'generated/google/apis/books_v1/classes.rb', line 3087 def update!(**args) @finsky_offer_type = args[:finsky_offer_type] if args.key?(:finsky_offer_type) @giftable = args[:giftable] if args.key?(:giftable) @list_price = args[:list_price] if args.key?(:list_price) @rental_duration = args[:rental_duration] if args.key?(:rental_duration) @retail_price = args[:retail_price] if args.key?(:retail_price) end |