Class: Google::Apis::ContentV2_1::CutoffTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CutoffTime

Returns a new instance of CutoffTime.



2211
2212
2213
# File 'lib/google/apis/content_v2_1/classes.rb', line 2211

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)


2197
2198
2199
# File 'lib/google/apis/content_v2_1/classes.rb', line 2197

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)


2203
2204
2205
# File 'lib/google/apis/content_v2_1/classes.rb', line 2203

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)


2209
2210
2211
# File 'lib/google/apis/content_v2_1/classes.rb', line 2209

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2216
2217
2218
2219
2220
# File 'lib/google/apis/content_v2_1/classes.rb', line 2216

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