Class: Google::Shopping::Type::Price

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/type/types.rb

Overview

The price represented as a number and currency.

Instance Attribute Summary collapse

Instance Attribute Details

#amount_micros::Integer

Returns The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).

Returns:

  • (::Integer)

    The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).



62
63
64
65
# File 'proto_docs/google/shopping/type/types.rb', line 62

class Price
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#currency_code::String

Returns The currency of the price using three-letter acronyms according to ISO 4217.

Returns:

  • (::String)

    The currency of the price using three-letter acronyms according to ISO 4217.



62
63
64
65
# File 'proto_docs/google/shopping/type/types.rb', line 62

class Price
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end