Class: Google::Apis::ContentV2_1::WarehouseCutoffTime

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

Returns a new instance of WarehouseCutoffTime.



16055
16056
16057
# File 'lib/google/apis/content_v2_1/classes.rb', line 16055

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

Instance Attribute Details

#hourFixnum

Required. Hour (24-hour clock) of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse. Corresponds to the JSON property hour

Returns:

  • (Fixnum)


16046
16047
16048
# File 'lib/google/apis/content_v2_1/classes.rb', line 16046

def hour
  @hour
end

#minuteFixnum

Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse. Corresponds to the JSON property minute

Returns:

  • (Fixnum)


16053
16054
16055
# File 'lib/google/apis/content_v2_1/classes.rb', line 16053

def minute
  @minute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16060
16061
16062
16063
# File 'lib/google/apis/content_v2_1/classes.rb', line 16060

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