Class: Google::Apis::DfareportingV4::Report::Delivery

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

Overview

The report's email delivery settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Delivery

Returns a new instance of Delivery.



10557
10558
10559
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10557

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

Instance Attribute Details

#email_ownerBoolean Also known as: email_owner?

Whether the report should be emailed to the report owner. Corresponds to the JSON property emailOwner

Returns:

  • (Boolean)


10539
10540
10541
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10539

def email_owner
  @email_owner
end

#email_owner_delivery_typeString

The type of delivery for the owner to receive, if enabled. Corresponds to the JSON property emailOwnerDeliveryType

Returns:

  • (String)


10545
10546
10547
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10545

def email_owner_delivery_type
  @email_owner_delivery_type
end

#messageString

The message to be sent with each email. Corresponds to the JSON property message

Returns:

  • (String)


10550
10551
10552
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10550

def message
  @message
end

#recipientsArray<Google::Apis::DfareportingV4::Recipient>

The list of recipients to which to email the report. Corresponds to the JSON property recipients



10555
10556
10557
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10555

def recipients
  @recipients
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10562
10563
10564
10565
10566
10567
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10562

def update!(**args)
  @email_owner = args[:email_owner] if args.key?(:email_owner)
  @email_owner_delivery_type = args[:email_owner_delivery_type] if args.key?(:email_owner_delivery_type)
  @message = args[:message] if args.key?(:message)
  @recipients = args[:recipients] if args.key?(:recipients)
end