Class: Google::Apis::MybusinessbusinessinformationV1::OpenInfo
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::OpenInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Information related to the opening state of the business.
Instance Attribute Summary collapse
-
#can_reopen ⇒ Boolean
(also: #can_reopen?)
Output only.
-
#opening_date ⇒ Google::Apis::MybusinessbusinessinformationV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#status ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OpenInfo
constructor
A new instance of OpenInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OpenInfo
Returns a new instance of OpenInfo.
1151 1152 1153 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_reopen ⇒ Boolean Also known as: can_reopen?
Output only. Indicates whether this business is eligible for re-open.
Corresponds to the JSON property canReopen
1130 1131 1132 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1130 def can_reopen @can_reopen end |
#opening_date ⇒ Google::Apis::MybusinessbusinessinformationV1::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 openingDate
1143 1144 1145 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1143 def opening_date @opening_date end |
#status ⇒ String
Required. Indicates whether or not the Location is currently open for business.
All locations are open by default, unless updated to be closed.
Corresponds to the JSON property status
1149 1150 1151 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1149 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1156 1157 1158 1159 1160 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1156 def update!(**args) @can_reopen = args[:can_reopen] if args.key?(:can_reopen) @opening_date = args[:opening_date] if args.key?(:opening_date) @status = args[:status] if args.key?(:status) end |