Class: Google::Apis::DfareportingV2_5::Recipient

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_5/classes.rb,
generated/google/apis/dfareporting_v2_5/representations.rb,
generated/google/apis/dfareporting_v2_5/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.


8964
8965
8966
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8964

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)

8952
8953
8954
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8952

def delivery_type
  @delivery_type
end

#emailString

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

Returns:

  • (String)

8957
8958
8959
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8957

def email
  @email
end

#kindString

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

Returns:

  • (String)

8962
8963
8964
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8962

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


8969
8970
8971
8972
8973
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8969

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