Class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod
- 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
-
#end_time ⇒ String
The end time (exclusive) of the period.
-
#start_time ⇒ String
The start time (inclusive) of the period.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleEffectiveTimeFixedTimePeriod
constructor
A new instance of RepricingRuleEffectiveTimeFixedTimePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleEffectiveTimeFixedTimePeriod
Returns a new instance of RepricingRuleEffectiveTimeFixedTimePeriod.
11875 11876 11877 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11875 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
The end time (exclusive) of the period. It can only be hour granularity.
Corresponds to the JSON property endTime
11868 11869 11870 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11868 def end_time @end_time end |
#start_time ⇒ String
The start time (inclusive) of the period. It can only be hour granularity.
Corresponds to the JSON property startTime
11873 11874 11875 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11873 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11880 11881 11882 11883 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11880 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |