[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# gapic-common - Class Gapic::Config::Method (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/gapic-common/latest/Gapic-Config-Method)\n- [1.0.1](/ruby/docs/reference/gapic-common/1.0.1/Gapic-Config-Method)\n- [0.26.0](/ruby/docs/reference/gapic-common/0.26.0/Gapic-Config-Method)\n- [0.25.0](/ruby/docs/reference/gapic-common/0.25.0/Gapic-Config-Method)\n- [0.24.0](/ruby/docs/reference/gapic-common/0.24.0/Gapic-Config-Method) \nReference documentation and code samples for the gapic-common class Gapic::Config::Method.\n\nConfig::Method is a configuration class that represents the configuration for an API RPC call. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- [Gapic::Config](./Gapic-Config)\n\nExample\n-------\n\n```ruby\nrequire \"gapic/config\"\n\nclass ServiceConfig\n extend Gapic::Config\n\n config_attr :host, \"localhost\", String\n config_attr :port, 443, Integer\n config_attr :timeout, nil, Numeric, nil\n config_attr :metadata, nil, Hash, nil\n\n attr_reader :rpc_method\n\n def initialize parent_config = nil\n @parent_config = parent_config unless parent_config.nil?\n @rpc_method = Gapic::Config::Method.new\n\n yield self if block_given?\n end\nend\n\nconfig = ServiceConfig.new\n\nconfig.timeout = 60\nconfig.rpc_method.timeout = 120\n```\n\nMethods\n-------\n\n### #initialize\n\n def initialize(parent_method = nil) { |_self| ... } -\u003e Method\n\nCreate a new Config::Method object instance. \n**Parameter**\n\n- **parent_method** ([Gapic::Config::Method](./Gapic-Config-Method), nil) --- The config to look to values for. \n**Yields**\n\n- (_self) \n**Yield Parameter**\n\n- **_self** ([Gapic::Config::Method](./Gapic-Config-Method)) --- the object that the method was called on \n**Returns**\n\n- ([Method](./Gapic-Config-Method)) --- a new instance of Method"]]