Class: Google::Apis::BooksV1::UserSettings::Notification
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::UserSettings::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
Defined Under Namespace
Classes: MatchMyInterests, MoreFromAuthors, MoreFromSeries, PriceDrop, RewardExpirations
Instance Attribute Summary collapse
-
#match_my_interests ⇒ Google::Apis::BooksV1::UserSettings::Notification::MatchMyInterests
Corresponds to the JSON property
matchMyInterests
. -
#more_from_authors ⇒ Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors
Corresponds to the JSON property
moreFromAuthors
. -
#more_from_series ⇒ Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries
Corresponds to the JSON property
moreFromSeries
. -
#price_drop ⇒ Google::Apis::BooksV1::UserSettings::Notification::PriceDrop
Corresponds to the JSON property
priceDrop
. -
#reward_expirations ⇒ Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations
Corresponds to the JSON property
rewardExpirations
.
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.
2786 2787 2788 |
# File 'generated/google/apis/books_v1/classes.rb', line 2786 def initialize(**args) update!(**args) end |
Instance Attribute Details
#match_my_interests ⇒ Google::Apis::BooksV1::UserSettings::Notification::MatchMyInterests
Corresponds to the JSON property matchMyInterests
2764 2765 2766 |
# File 'generated/google/apis/books_v1/classes.rb', line 2764 def match_my_interests @match_my_interests end |
#more_from_authors ⇒ Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors
Corresponds to the JSON property moreFromAuthors
2769 2770 2771 |
# File 'generated/google/apis/books_v1/classes.rb', line 2769 def @more_from_authors end |
#more_from_series ⇒ Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries
Corresponds to the JSON property moreFromSeries
2774 2775 2776 |
# File 'generated/google/apis/books_v1/classes.rb', line 2774 def more_from_series @more_from_series end |
#price_drop ⇒ Google::Apis::BooksV1::UserSettings::Notification::PriceDrop
Corresponds to the JSON property priceDrop
2779 2780 2781 |
# File 'generated/google/apis/books_v1/classes.rb', line 2779 def price_drop @price_drop end |
#reward_expirations ⇒ Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations
Corresponds to the JSON property rewardExpirations
2784 2785 2786 |
# File 'generated/google/apis/books_v1/classes.rb', line 2784 def reward_expirations @reward_expirations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2791 2792 2793 2794 2795 2796 2797 |
# File 'generated/google/apis/books_v1/classes.rb', line 2791 def update!(**args) @match_my_interests = args[:match_my_interests] if args.key?(:match_my_interests) @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) @price_drop = args[:price_drop] if args.key?(:price_drop) @reward_expirations = args[:reward_expirations] if args.key?(:reward_expirations) end |