Class: Google::Apis::MerchantapiDatasourcesV1beta::Destination

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

Overview

Destinations also known as Marketing methods selections.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Destination

Returns a new instance of Destination.



204
205
206
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 204

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

Instance Attribute Details

#destinationString

Marketing methods ( also known as destination) selections. Corresponds to the JSON property destination

Returns:

  • (String)


197
198
199
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 197

def destination
  @destination
end

#stateString

The state of the destination. Corresponds to the JSON property state

Returns:

  • (String)


202
203
204
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 202

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



209
210
211
212
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 209

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