Class: Google::Apis::BooksV1::Notification

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Notification

Returns a new instance of Notification



2066
2067
2068
# File 'generated/google/apis/books_v1/classes.rb', line 2066

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bodyString

Corresponds to the JSON property body

Returns:

  • (String)


1997
1998
1999
# File 'generated/google/apis/books_v1/classes.rb', line 1997

def body
  @body
end

#crm_experiment_idsArray<Fixnum>

The list of crm experiment ids. Corresponds to the JSON property crmExperimentIds

Returns:

  • (Array<Fixnum>)


2002
2003
2004
# File 'generated/google/apis/books_v1/classes.rb', line 2002

def crm_experiment_ids
  @crm_experiment_ids
end

#doc_idString

Corresponds to the JSON property doc_id

Returns:

  • (String)


2007
2008
2009
# File 'generated/google/apis/books_v1/classes.rb', line 2007

def doc_id
  @doc_id
end

#doc_typeString

Corresponds to the JSON property doc_type

Returns:

  • (String)


2012
2013
2014
# File 'generated/google/apis/books_v1/classes.rb', line 2012

def doc_type
  @doc_type
end

#dont_show_notificationBoolean Also known as: dont_show_notification?

Corresponds to the JSON property dont_show_notification

Returns:

  • (Boolean)


2017
2018
2019
# File 'generated/google/apis/books_v1/classes.rb', line 2017

def dont_show_notification
  @dont_show_notification
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


2023
2024
2025
# File 'generated/google/apis/books_v1/classes.rb', line 2023

def icon_url
  @icon_url
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2028
2029
2030
# File 'generated/google/apis/books_v1/classes.rb', line 2028

def kind
  @kind
end

#notification_groupString

Corresponds to the JSON property notificationGroup

Returns:

  • (String)


2033
2034
2035
# File 'generated/google/apis/books_v1/classes.rb', line 2033

def notification_group
  @notification_group
end

#notification_typeString

Corresponds to the JSON property notification_type

Returns:

  • (String)


2038
2039
2040
# File 'generated/google/apis/books_v1/classes.rb', line 2038

def notification_type
  @notification_type
end

#pcampaign_idString

Corresponds to the JSON property pcampaign_id

Returns:

  • (String)


2043
2044
2045
# File 'generated/google/apis/books_v1/classes.rb', line 2043

def pcampaign_id
  @pcampaign_id
end

#reasonString

Corresponds to the JSON property reason

Returns:

  • (String)


2048
2049
2050
# File 'generated/google/apis/books_v1/classes.rb', line 2048

def reason
  @reason
end

#show_notification_settings_actionBoolean Also known as: show_notification_settings_action?

Corresponds to the JSON property show_notification_settings_action

Returns:

  • (Boolean)


2053
2054
2055
# File 'generated/google/apis/books_v1/classes.rb', line 2053

def show_notification_settings_action
  @show_notification_settings_action
end

#target_urlString

Corresponds to the JSON property targetUrl

Returns:

  • (String)


2059
2060
2061
# File 'generated/google/apis/books_v1/classes.rb', line 2059

def target_url
  @target_url
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2064
2065
2066
# File 'generated/google/apis/books_v1/classes.rb', line 2064

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
# File 'generated/google/apis/books_v1/classes.rb', line 2071

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_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)
  @title = args[:title] if args.key?(:title)
end