Class: Google::Apis::ContentV2::CutoffTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CutoffTime

Returns a new instance of CutoffTime



1322
1323
1324
# File 'generated/google/apis/content_v2/classes.rb', line 1322

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

Instance Attribute Details

#hourFixnum

Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. Corresponds to the JSON property hour

Returns:

  • (Fixnum)


1308
1309
1310
# File 'generated/google/apis/content_v2/classes.rb', line 1308

def hour
  @hour
end

#minuteFixnum

Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. Corresponds to the JSON property minute

Returns:

  • (Fixnum)


1314
1315
1316
# File 'generated/google/apis/content_v2/classes.rb', line 1314

def minute
  @minute
end

#timezoneString

Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. Corresponds to the JSON property timezone

Returns:

  • (String)


1320
1321
1322
# File 'generated/google/apis/content_v2/classes.rb', line 1320

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1327
1328
1329
1330
1331
# File 'generated/google/apis/content_v2/classes.rb', line 1327

def update!(**args)
  @hour = args[:hour] if args.key?(:hour)
  @minute = args[:minute] if args.key?(:minute)
  @timezone = args[:timezone] if args.key?(:timezone)
end