Module: Google::Shopping::Merchant::Notifications::V1beta::NotificationsApiService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/notifications/v1beta/notifications_api_service/paths.rb
Overview
Path helper methods for the NotificationsApiService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#notification_subscription_path(account:, notification_subscription:) ⇒ ::String
Create a fully-qualified NotificationSubscription resource string.
Instance Method Details
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
The resource will be in the following format:
accounts/{account}
38 39 40 |
# File 'lib/google/shopping/merchant/notifications/v1beta/notifications_api_service/paths.rb', line 38 def account_path account: "accounts/#{account}" end |
#notification_subscription_path(account:, notification_subscription:) ⇒ ::String
Create a fully-qualified NotificationSubscription resource string.
The resource will be in the following format:
accounts/{account}/notificationsubscriptions/{notification_subscription}
53 54 55 56 57 |
# File 'lib/google/shopping/merchant/notifications/v1beta/notifications_api_service/paths.rb', line 53 def notification_subscription_path account:, notification_subscription: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/notificationsubscriptions/#{notification_subscription}" end |