Class: Google::Apis::MirrorV1::NotificationConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Overview

Controls how notifications for a timeline item are presented to the user.

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) ⇒ NotificationConfig

Returns a new instance of NotificationConfig



590
591
592
# File 'generated/google/apis/mirror_v1/classes.rb', line 590

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

Instance Attribute Details

#delivery_timeDateTime

The time at which the notification should be delivered. Corresponds to the JSON property deliveryTime

Returns:

  • (DateTime)


581
582
583
# File 'generated/google/apis/mirror_v1/classes.rb', line 581

def delivery_time
  @delivery_time
end

#levelString

Describes how important the notification is. Allowed values are:

  • DEFAULT - Notifications of default importance. A chime will be played to alert users. Corresponds to the JSON property level

Returns:

  • (String)


588
589
590
# File 'generated/google/apis/mirror_v1/classes.rb', line 588

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



595
596
597
598
# File 'generated/google/apis/mirror_v1/classes.rb', line 595

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