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<Fixnum>
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
. -
#is_document_mature ⇒ Boolean
(also: #is_document_mature?)
Corresponds to the JSON property
is_document_mature
. -
#kind ⇒ String
Resource type.
-
#notification_group ⇒ String
Corresponds to the JSON property
notificationGroup
. -
#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
. -
#time_to_expire_ms ⇒ Fixnum
Corresponds to the JSON property
timeToExpireMs
. -
#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.
2183 2184 2185 |
# File 'generated/google/apis/books_v1/classes.rb', line 2183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
Corresponds to the JSON property body
2103 2104 2105 |
# File 'generated/google/apis/books_v1/classes.rb', line 2103 def body @body end |
#crm_experiment_ids ⇒ Array<Fixnum>
The list of crm experiment ids.
Corresponds to the JSON property crmExperimentIds
2108 2109 2110 |
# File 'generated/google/apis/books_v1/classes.rb', line 2108 def crm_experiment_ids @crm_experiment_ids end |
#doc_id ⇒ String
Corresponds to the JSON property doc_id
2113 2114 2115 |
# File 'generated/google/apis/books_v1/classes.rb', line 2113 def doc_id @doc_id end |
#doc_type ⇒ String
Corresponds to the JSON property doc_type
2118 2119 2120 |
# File 'generated/google/apis/books_v1/classes.rb', line 2118 def doc_type @doc_type end |
#dont_show_notification ⇒ Boolean Also known as: dont_show_notification?
Corresponds to the JSON property dont_show_notification
2123 2124 2125 |
# File 'generated/google/apis/books_v1/classes.rb', line 2123 def dont_show_notification @dont_show_notification end |
#icon_url ⇒ String
Corresponds to the JSON property iconUrl
2129 2130 2131 |
# File 'generated/google/apis/books_v1/classes.rb', line 2129 def icon_url @icon_url end |
#is_document_mature ⇒ Boolean Also known as: is_document_mature?
Corresponds to the JSON property is_document_mature
2134 2135 2136 |
# File 'generated/google/apis/books_v1/classes.rb', line 2134 def is_document_mature @is_document_mature end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
2140 2141 2142 |
# File 'generated/google/apis/books_v1/classes.rb', line 2140 def kind @kind end |
#notification_group ⇒ String
Corresponds to the JSON property notificationGroup
2145 2146 2147 |
# File 'generated/google/apis/books_v1/classes.rb', line 2145 def notification_group @notification_group end |
#notification_type ⇒ String
Corresponds to the JSON property notification_type
2150 2151 2152 |
# File 'generated/google/apis/books_v1/classes.rb', line 2150 def notification_type @notification_type end |
#pcampaign_id ⇒ String
Corresponds to the JSON property pcampaign_id
2155 2156 2157 |
# File 'generated/google/apis/books_v1/classes.rb', line 2155 def pcampaign_id @pcampaign_id end |
#reason ⇒ String
Corresponds to the JSON property reason
2160 2161 2162 |
# File 'generated/google/apis/books_v1/classes.rb', line 2160 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
2165 2166 2167 |
# File 'generated/google/apis/books_v1/classes.rb', line 2165 def show_notification_settings_action @show_notification_settings_action end |
#target_url ⇒ String
Corresponds to the JSON property targetUrl
2171 2172 2173 |
# File 'generated/google/apis/books_v1/classes.rb', line 2171 def target_url @target_url end |
#time_to_expire_ms ⇒ Fixnum
Corresponds to the JSON property timeToExpireMs
2176 2177 2178 |
# File 'generated/google/apis/books_v1/classes.rb', line 2176 def time_to_expire_ms @time_to_expire_ms end |
#title ⇒ String
Corresponds to the JSON property title
2181 2182 2183 |
# File 'generated/google/apis/books_v1/classes.rb', line 2181 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 |
# File 'generated/google/apis/books_v1/classes.rb', line 2188 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) @is_document_mature = args[:is_document_mature] if args.key?(:is_document_mature) @kind = args[:kind] if args.key?(:kind) @notification_group = args[:notification_group] if args.key?(:notification_group) @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) @time_to_expire_ms = args[:time_to_expire_ms] if args.key?(:time_to_expire_ms) @title = args[:title] if args.key?(:title) end |