Class: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RetailPrice

Returns a new instance of RetailPrice.



3370
3371
3372
# File 'generated/google/apis/books_v1/classes.rb', line 3370

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

Instance Attribute Details

#amountFloat

Amount in the currency listed below. (In LITE projection.) Corresponds to the JSON property amount

Returns:

  • (Float)


3363
3364
3365
# File 'generated/google/apis/books_v1/classes.rb', line 3363

def amount
  @amount
end

#currency_codeString

An ISO 4217, three-letter currency code. (In LITE projection.) Corresponds to the JSON property currencyCode

Returns:

  • (String)


3368
3369
3370
# File 'generated/google/apis/books_v1/classes.rb', line 3368

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3375
3376
3377
3378
# File 'generated/google/apis/books_v1/classes.rb', line 3375

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
end