Class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime

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) ⇒ RepricingRuleEffectiveTime

Returns a new instance of RepricingRuleEffectiveTime.



11733
11734
11735
# File 'lib/google/apis/content_v2_1/classes.rb', line 11733

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

Instance Attribute Details

#fixed_time_periodsArray<Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod>

A list of fixed time periods combined with OR. The maximum number of entries is limited to 5. Corresponds to the JSON property fixedTimePeriods



11731
11732
11733
# File 'lib/google/apis/content_v2_1/classes.rb', line 11731

def fixed_time_periods
  @fixed_time_periods
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11738
11739
11740
# File 'lib/google/apis/content_v2_1/classes.rb', line 11738

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