Class: Google::Apis::BooksV1::Volume::SaleInfo::ListPrice

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/google/apis/books_v1/representations.rb

Overview

Suggested retail price. (In LITE projection.)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPrice

Returns a new instance of ListPrice.



3409
3410
3411
# File 'lib/google/apis/books_v1/classes.rb', line 3409

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)


3402
3403
3404
# File 'lib/google/apis/books_v1/classes.rb', line 3402

def amount
  @amount
end

#currency_codeString

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

Returns:

  • (String)


3407
3408
3409
# File 'lib/google/apis/books_v1/classes.rb', line 3407

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3414
3415
3416
3417
# File 'lib/google/apis/books_v1/classes.rb', line 3414

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