Class: Google::Apis::BooksV1::Volume::SaleInfo::ListPrice
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::SaleInfo::ListPrice
- 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
Suggested retail price. (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) ⇒ ListPrice
constructor
A new instance of ListPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListPrice
Returns a new instance of ListPrice
3204 3205 3206 |
# File 'generated/google/apis/books_v1/classes.rb', line 3204 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
3197 3198 3199 |
# File 'generated/google/apis/books_v1/classes.rb', line 3197 def amount @amount end |
#currency_code ⇒ String
An ISO 4217, three-letter currency code. (In LITE projection.)
Corresponds to the JSON property currencyCode
3202 3203 3204 |
# File 'generated/google/apis/books_v1/classes.rb', line 3202 def currency_code @currency_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3209 3210 3211 3212 |
# File 'generated/google/apis/books_v1/classes.rb', line 3209 def update!(**args) @amount = args[:amount] if args.key?(:amount) @currency_code = args[:currency_code] if args.key?(:currency_code) end |