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). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.

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). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.



35
36
37
38
# File 'proto_docs/google/shopping/type/types.rb', line 35

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.



35
36
37
38
# File 'proto_docs/google/shopping/type/types.rb', line 35

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