Class: Google::Apis::BooksV1::UserSettings::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

Defined Under Namespace

Classes: MoreFromAuthors, MoreFromSeries

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.


2577
2578
2579
# File 'generated/google/apis/books_v1/classes.rb', line 2577

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

Instance Attribute Details

#more_from_authorsGoogle::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors

Corresponds to the JSON property moreFromAuthors


2570
2571
2572
# File 'generated/google/apis/books_v1/classes.rb', line 2570

def more_from_authors
  @more_from_authors
end

#more_from_seriesGoogle::Apis::BooksV1::UserSettings::Notification::MoreFromSeries

Corresponds to the JSON property moreFromSeries


2575
2576
2577
# File 'generated/google/apis/books_v1/classes.rb', line 2575

def more_from_series
  @more_from_series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2582
2583
2584
2585
# File 'generated/google/apis/books_v1/classes.rb', line 2582

def update!(**args)
  @more_from_authors = args[:more_from_authors] if args.key?(:more_from_authors)
  @more_from_series = args[:more_from_series] if args.key?(:more_from_series)
end