Class: Google::Apis::DfareportingV4::Recipient

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

Represents a recipient.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Recipient

Returns a new instance of Recipient.



10036
10037
10038
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10036

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)


10024
10025
10026
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10024

def delivery_type
  @delivery_type
end

#emailString

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

Returns:

  • (String)


10029
10030
10031
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10029

def email
  @email
end

#kindString

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

Returns:

  • (String)


10034
10035
10036
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10034

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10041
10042
10043
10044
10045
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10041

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