Class: Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration
 
- 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
The rental duration (for rental offers only).
Instance Attribute Summary collapse
- 
  
    
      #count  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property count.
- 
  
    
      #unit  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property unit.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RentalDuration 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RentalDuration. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RentalDuration
Returns a new instance of RentalDuration
| 3284 3285 3286 | # File 'generated/google/apis/books_v1/classes.rb', line 3284 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#count ⇒ Float
Corresponds to the JSON property count
| 3277 3278 3279 | # File 'generated/google/apis/books_v1/classes.rb', line 3277 def count @count end | 
#unit ⇒ String
Corresponds to the JSON property unit
| 3282 3283 3284 | # File 'generated/google/apis/books_v1/classes.rb', line 3282 def unit @unit end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3289 3290 3291 3292 | # File 'generated/google/apis/books_v1/classes.rb', line 3289 def update!(**args) @count = args[:count] if args.key?(:count) @unit = args[:unit] if args.key?(:unit) end |