Class: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice
 
- 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 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.)
Instance Attribute Summary collapse
- 
  
    
      #amount  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Amount in the currency listed below. 
- 
  
    
      #currency_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An ISO 4217, three-letter currency code. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RetailPrice 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RetailPrice. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RetailPrice
Returns a new instance of RetailPrice
| 3337 3338 3339 | # File 'generated/google/apis/books_v1/classes.rb', line 3337 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#amount ⇒ Float
Amount in the currency listed below. (In LITE projection.)
Corresponds to the JSON property amount
| 3330 3331 3332 | # File 'generated/google/apis/books_v1/classes.rb', line 3330 def amount @amount end | 
#currency_code ⇒ String
An ISO 4217, three-letter currency code. (In LITE projection.)
Corresponds to the JSON property currencyCode
| 3335 3336 3337 | # File 'generated/google/apis/books_v1/classes.rb', line 3335 def currency_code @currency_code end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3342 3343 3344 3345 | # File 'generated/google/apis/books_v1/classes.rb', line 3342 def update!(**args) @amount = args[:amount] if args.key?(:amount) @currency_code = args[:currency_code] if args.key?(:currency_code) end |