Class: Google::Apis::DfareportingV3_0::Recipient

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

Overview

Represents a recipient.

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

Returns a new instance of Recipient



9441
9442
9443
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 9441

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

Instance Attribute Details

#delivery_typeString

The delivery type for the recipient. Corresponds to the JSON property deliveryType

Returns:

  • (String)


9429
9430
9431
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 9429

def delivery_type
  @delivery_type
end

#emailString

The email address of the recipient. Corresponds to the JSON property email

Returns:

  • (String)


9434
9435
9436
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 9434

def email
  @email
end

#kindString

The kind of resource this is, in this case dfareporting#recipient. Corresponds to the JSON property kind

Returns:

  • (String)


9439
9440
9441
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 9439

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9446
9447
9448
9449
9450
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 9446

def update!(**args)
  @delivery_type = args[:delivery_type] if args.key?(:delivery_type)
  @email = args[:email] if args.key?(:email)
  @kind = args[:kind] if args.key?(:kind)
end