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: MatchMyInterests, MoreFromAuthors, MoreFromSeries, PriceDrop, RewardExpirations

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.



2700
2701
2702
# File 'generated/google/apis/books_v1/classes.rb', line 2700

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

Instance Attribute Details

#match_my_interestsGoogle::Apis::BooksV1::UserSettings::Notification::MatchMyInterests

Corresponds to the JSON property matchMyInterests



2678
2679
2680
# File 'generated/google/apis/books_v1/classes.rb', line 2678

def match_my_interests
  @match_my_interests
end

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

Corresponds to the JSON property moreFromAuthors



2683
2684
2685
# File 'generated/google/apis/books_v1/classes.rb', line 2683

def more_from_authors
  @more_from_authors
end

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

Corresponds to the JSON property moreFromSeries



2688
2689
2690
# File 'generated/google/apis/books_v1/classes.rb', line 2688

def more_from_series
  @more_from_series
end

#price_dropGoogle::Apis::BooksV1::UserSettings::Notification::PriceDrop

Corresponds to the JSON property priceDrop



2693
2694
2695
# File 'generated/google/apis/books_v1/classes.rb', line 2693

def price_drop
  @price_drop
end

#reward_expirationsGoogle::Apis::BooksV1::UserSettings::Notification::RewardExpirations

Corresponds to the JSON property rewardExpirations



2698
2699
2700
# File 'generated/google/apis/books_v1/classes.rb', line 2698

def reward_expirations
  @reward_expirations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2705
2706
2707
2708
2709
2710
2711
# File 'generated/google/apis/books_v1/classes.rb', line 2705

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