Class: Google::Apis::MybusinessplaceactionsV1::AvailableDay

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/mybusinessplaceactions_v1/classes.rb,
lib/google/apis/mybusinessplaceactions_v1/representations.rb,
lib/google/apis/mybusinessplaceactions_v1/representations.rb

Overview

Day level availability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AvailableDay

Returns a new instance of AvailableDay.



48
49
50
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 48

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

Instance Attribute Details

#fulfillment_dateGoogle::Apis::MybusinessplaceactionsV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property fulfillmentDate



39
40
41
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 39

def fulfillment_date
  @fulfillment_date
end

#last_ordering_timeString

Unix timestamp. The last time till when, a user could place an order to be received by fulfillment_date. In other words, after last_ordering_time, fulfillment_date will no longer be shown as available. Corresponds to the JSON property lastOrderingTime

Returns:

  • (String)


46
47
48
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 46

def last_ordering_time
  @last_ordering_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53
54
55
56
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 53

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