Class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod

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

Overview

Definition of a fixed time period.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RepricingRuleEffectiveTimeFixedTimePeriod

Returns a new instance of RepricingRuleEffectiveTimeFixedTimePeriod.



12165
12166
12167
# File 'lib/google/apis/content_v2_1/classes.rb', line 12165

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

Instance Attribute Details

#end_timeString

The end time (exclusive) of the period. It can only be hour granularity. Corresponds to the JSON property endTime

Returns:

  • (String)


12158
12159
12160
# File 'lib/google/apis/content_v2_1/classes.rb', line 12158

def end_time
  @end_time
end

#start_timeString

The start time (inclusive) of the period. It can only be hour granularity. Corresponds to the JSON property startTime

Returns:

  • (String)


12163
12164
12165
# File 'lib/google/apis/content_v2_1/classes.rb', line 12163

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12170
12171
12172
12173
# File 'lib/google/apis/content_v2_1/classes.rb', line 12170

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