Class: Google::Apis::BooksV1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Notification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb
Instance Attribute Summary collapse
-
#body ⇒ String
Corresponds to the JSON property
body
. -
#crm_experiment_ids ⇒ Array<String>
The list of crm experiment ids.
-
#doc_id ⇒ String
Corresponds to the JSON property
doc_id
. -
#doc_type ⇒ String
Corresponds to the JSON property
doc_type
. -
#dont_show_notification ⇒ Boolean
(also: #dont_show_notification?)
Corresponds to the JSON property
dont_show_notification
. -
#icon_url ⇒ String
Corresponds to the JSON property
iconUrl
. -
#kind ⇒ String
Resource type.
-
#notification_type ⇒ String
Corresponds to the JSON property
notification_type
. -
#pcampaign_id ⇒ String
Corresponds to the JSON property
pcampaign_id
. -
#reason ⇒ String
Corresponds to the JSON property
reason
. -
#show_notification_settings_action ⇒ Boolean
(also: #show_notification_settings_action?)
Corresponds to the JSON property
show_notification_settings_action
. -
#target_url ⇒ String
Corresponds to the JSON property
targetUrl
. -
#title ⇒ String
Corresponds to the JSON property
title
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification.
2060 2061 2062 |
# File 'generated/google/apis/books_v1/classes.rb', line 2060 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
Corresponds to the JSON property body
1996 1997 1998 |
# File 'generated/google/apis/books_v1/classes.rb', line 1996 def body @body end |
#crm_experiment_ids ⇒ Array<String>
The list of crm experiment ids.
Corresponds to the JSON property crmExperimentIds
2001 2002 2003 |
# File 'generated/google/apis/books_v1/classes.rb', line 2001 def crm_experiment_ids @crm_experiment_ids end |
#doc_id ⇒ String
Corresponds to the JSON property doc_id
2006 2007 2008 |
# File 'generated/google/apis/books_v1/classes.rb', line 2006 def doc_id @doc_id end |
#doc_type ⇒ String
Corresponds to the JSON property doc_type
2011 2012 2013 |
# File 'generated/google/apis/books_v1/classes.rb', line 2011 def doc_type @doc_type end |
#dont_show_notification ⇒ Boolean Also known as: dont_show_notification?
Corresponds to the JSON property dont_show_notification
2016 2017 2018 |
# File 'generated/google/apis/books_v1/classes.rb', line 2016 def dont_show_notification @dont_show_notification end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
2022 2023 2024 |
# File 'generated/google/apis/books_v1/classes.rb', line 2022 def icon_url @icon_url end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
2027 2028 2029 |
# File 'generated/google/apis/books_v1/classes.rb', line 2027 def kind @kind end |
#notification_type ⇒ String
Corresponds to the JSON property notification_type
2032 2033 2034 |
# File 'generated/google/apis/books_v1/classes.rb', line 2032 def notification_type @notification_type end |
#pcampaign_id ⇒ String
Corresponds to the JSON property pcampaign_id
2037 2038 2039 |
# File 'generated/google/apis/books_v1/classes.rb', line 2037 def pcampaign_id @pcampaign_id end |
#reason ⇒ String
Corresponds to the JSON property reason
2042 2043 2044 |
# File 'generated/google/apis/books_v1/classes.rb', line 2042 def reason @reason end |
#show_notification_settings_action ⇒ Boolean Also known as: show_notification_settings_action?
Corresponds to the JSON property show_notification_settings_action
2047 2048 2049 |
# File 'generated/google/apis/books_v1/classes.rb', line 2047 def show_notification_settings_action @show_notification_settings_action end |
#target_url ⇒ String
Corresponds to the JSON property targetUrl
2053 2054 2055 |
# File 'generated/google/apis/books_v1/classes.rb', line 2053 def target_url @target_url end |
#title ⇒ String
Corresponds to the JSON property title
2058 2059 2060 |
# File 'generated/google/apis/books_v1/classes.rb', line 2058 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 |
# File 'generated/google/apis/books_v1/classes.rb', line 2065 def update!(**args) @body = args[:body] if args.key?(:body) @crm_experiment_ids = args[:crm_experiment_ids] if args.key?(:crm_experiment_ids) @doc_id = args[:doc_id] if args.key?(:doc_id) @doc_type = args[:doc_type] if args.key?(:doc_type) @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification) @icon_url = args[:icon_url] if args.key?(:icon_url) @kind = args[:kind] if args.key?(:kind) @notification_type = args[:notification_type] if args.key?(:notification_type) @pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id) @reason = args[:reason] if args.key?(:reason) @show_notification_settings_action = args[:show_notification_settings_action] if args.key?(:show_notification_settings_action) @target_url = args[:target_url] if args.key?(:target_url) @title = args[:title] if args.key?(:title) end |