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.



200
201
202
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 200

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)


193
194
195
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 193

def destination
  @destination
end

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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