[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::PriceByResource (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-PriceByResource)\n- [2.2.0](/ruby/docs/reference/google-cloud-channel-v1/2.2.0/Google-Cloud-Channel-V1-PriceByResource)\n- [2.1.0](/ruby/docs/reference/google-cloud-channel-v1/2.1.0/Google-Cloud-Channel-V1-PriceByResource)\n- [2.0.1](/ruby/docs/reference/google-cloud-channel-v1/2.0.1/Google-Cloud-Channel-V1-PriceByResource)\n- [1.3.0](/ruby/docs/reference/google-cloud-channel-v1/1.3.0/Google-Cloud-Channel-V1-PriceByResource)\n- [1.2.0](/ruby/docs/reference/google-cloud-channel-v1/1.2.0/Google-Cloud-Channel-V1-PriceByResource)\n- [1.1.0](/ruby/docs/reference/google-cloud-channel-v1/1.1.0/Google-Cloud-Channel-V1-PriceByResource)\n- [1.0.1](/ruby/docs/reference/google-cloud-channel-v1/1.0.1/Google-Cloud-Channel-V1-PriceByResource)\n- [0.24.0](/ruby/docs/reference/google-cloud-channel-v1/0.24.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.23.2](/ruby/docs/reference/google-cloud-channel-v1/0.23.2/Google-Cloud-Channel-V1-PriceByResource)\n- [0.22.1](/ruby/docs/reference/google-cloud-channel-v1/0.22.1/Google-Cloud-Channel-V1-PriceByResource)\n- [0.21.0](/ruby/docs/reference/google-cloud-channel-v1/0.21.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.20.0](/ruby/docs/reference/google-cloud-channel-v1/0.20.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.19.0](/ruby/docs/reference/google-cloud-channel-v1/0.19.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.18.0](/ruby/docs/reference/google-cloud-channel-v1/0.18.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.17.0](/ruby/docs/reference/google-cloud-channel-v1/0.17.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.16.0](/ruby/docs/reference/google-cloud-channel-v1/0.16.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.15.0](/ruby/docs/reference/google-cloud-channel-v1/0.15.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.14.0](/ruby/docs/reference/google-cloud-channel-v1/0.14.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.13.0](/ruby/docs/reference/google-cloud-channel-v1/0.13.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.12.0](/ruby/docs/reference/google-cloud-channel-v1/0.12.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.11.0](/ruby/docs/reference/google-cloud-channel-v1/0.11.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.10.0](/ruby/docs/reference/google-cloud-channel-v1/0.10.0/Google-Cloud-Channel-V1-PriceByResource)\n- [0.9.5](/ruby/docs/reference/google-cloud-channel-v1/0.9.5/Google-Cloud-Channel-V1-PriceByResource) \nReference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::PriceByResource.\n\nRepresents price by resource type. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #price\n\n def price() -\u003e ::Google::Cloud::Channel::V1::Price\n\n**Returns**\n\n- ([::Google::Cloud::Channel::V1::Price](./Google-Cloud-Channel-V1-Price)) --- Price of the Offer. Present if there are no price phases.\n\n### #price=\n\n def price=(value) -\u003e ::Google::Cloud::Channel::V1::Price\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Channel::V1::Price](./Google-Cloud-Channel-V1-Price)) --- Price of the Offer. Present if there are no price phases. \n**Returns**\n\n- ([::Google::Cloud::Channel::V1::Price](./Google-Cloud-Channel-V1-Price)) --- Price of the Offer. Present if there are no price phases.\n\n### #price_phases\n\n def price_phases() -\u003e ::Array\u003c::Google::Cloud::Channel::V1::PricePhase\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::PricePhase](./Google-Cloud-Channel-V1-PricePhase)\\\u003e) --- Specifies the price by time range.\n\n### #price_phases=\n\n def price_phases=(value) -\u003e ::Array\u003c::Google::Cloud::Channel::V1::PricePhase\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Channel::V1::PricePhase](./Google-Cloud-Channel-V1-PricePhase)\\\u003e) --- Specifies the price by time range. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Channel::V1::PricePhase](./Google-Cloud-Channel-V1-PricePhase)\\\u003e) --- Specifies the price by time range.\n\n### #resource_type\n\n def resource_type() -\u003e ::Google::Cloud::Channel::V1::ResourceType\n\n**Returns**\n\n- ([::Google::Cloud::Channel::V1::ResourceType](./Google-Cloud-Channel-V1-ResourceType)) --- Resource Type. Example: SEAT\n\n### #resource_type=\n\n def resource_type=(value) -\u003e ::Google::Cloud::Channel::V1::ResourceType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Channel::V1::ResourceType](./Google-Cloud-Channel-V1-ResourceType)) --- Resource Type. Example: SEAT \n**Returns**\n\n- ([::Google::Cloud::Channel::V1::ResourceType](./Google-Cloud-Channel-V1-ResourceType)) --- Resource Type. Example: SEAT"]]