Class: Google::Apis::BooksV1::Volume::SaleInfo::Offer::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

Offer retail (=discounted) price in Micros

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.



3543
3544
3545
# File 'generated/google/apis/books_v1/classes.rb', line 3543

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

Instance Attribute Details

#amount_in_microsFloat

Corresponds to the JSON property amountInMicros

Returns:

  • (Float)


3536
3537
3538
# File 'generated/google/apis/books_v1/classes.rb', line 3536

def amount_in_micros
  @amount_in_micros
end

#currency_codeString

Corresponds to the JSON property currencyCode

Returns:

  • (String)


3541
3542
3543
# File 'generated/google/apis/books_v1/classes.rb', line 3541

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3548
3549
3550
3551
# File 'generated/google/apis/books_v1/classes.rb', line 3548

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