# Billing V1 API - Class Google::Cloud::Billing::V1::PricingInfo (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.18.1 0.17.4 0.16.0 0.15.1 0.14.0 0.13.2 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.5 Reference documentation and code samples for the Billing V1 API class Google::Cloud::Billing::V1::PricingInfo.

Represents the pricing information for a SKU at a single point of time.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aggregation_info

    def aggregation_info() -> ::Google::Cloud::Billing::V1::AggregationInfo

**Returns**

- ([::Google::Cloud::Billing::V1::AggregationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-AggregationInfo)) --- Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

### #aggregation_info=

    def aggregation_info=(value) -> ::Google::Cloud::Billing::V1::AggregationInfo

**Parameter**

- **value** ([::Google::Cloud::Billing::V1::AggregationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-AggregationInfo)) --- Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
**Returns**

- ([::Google::Cloud::Billing::V1::AggregationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-AggregationInfo)) --- Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

### #currency_conversion_rate

    def currency_conversion_rate() -> ::Float

**Returns**

- (::Float) --- Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD \* currency_conversion_rate = JPY

### #currency_conversion_rate=

    def currency_conversion_rate=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD \* currency_conversion_rate = JPY
**Returns**

- (::Float) --- Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD \* currency_conversion_rate = JPY

### #effective_time

    def effective_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

### #effective_time=

    def effective_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

### #pricing_expression

    def pricing_expression() -> ::Google::Cloud::Billing::V1::PricingExpression

**Returns**

- ([::Google::Cloud::Billing::V1::PricingExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-PricingExpression)) --- Expresses the pricing formula. See `PricingExpression` for an example.

### #pricing_expression=

    def pricing_expression=(value) -> ::Google::Cloud::Billing::V1::PricingExpression

**Parameter**

- **value** ([::Google::Cloud::Billing::V1::PricingExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-PricingExpression)) --- Expresses the pricing formula. See `PricingExpression` for an example.
**Returns**

- ([::Google::Cloud::Billing::V1::PricingExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-billing-v1/latest/Google-Cloud-Billing-V1-PricingExpression)) --- Expresses the pricing formula. See `PricingExpression` for an example.

### #summary

    def summary() -> ::String

**Returns**

- (::String) --- An optional human readable summary of the pricing information, has a maximum length of 256 characters.

### #summary=

    def summary=(value) -> ::String

**Parameter**

- **value** (::String) --- An optional human readable summary of the pricing information, has a maximum length of 256 characters.
**Returns**

- (::String) --- An optional human readable summary of the pricing information, has a maximum length of 256 characters.