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.



3600
3601
3602
# File 'lib/google/apis/content_v2_1/classes.rb', line 3600

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)


3586
3587
3588
# File 'lib/google/apis/content_v2_1/classes.rb', line 3586

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)


3592
3593
3594
# File 'lib/google/apis/content_v2_1/classes.rb', line 3592

def minute
  @minute
end

#timezoneString

Timezone identifier for the cutoff time (for example, "Europe/Zurich"). List of identifiers. Required. Corresponds to the JSON property timezone

Returns:

  • (String)


3598
3599
3600
# File 'lib/google/apis/content_v2_1/classes.rb', line 3598

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3605
3606
3607
3608
3609
# File 'lib/google/apis/content_v2_1/classes.rb', line 3605

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