Class: Google::Apis::MybusinessV3::OpenInfo

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

Overview

Indicates whether the location is currently open for business. All locations are open by default, unless updated to be closed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OpenInfo

Returns a new instance of OpenInfo



1201
1202
1203
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1201

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

Instance Attribute Details

#statusString

Indicates the Location OpenForBusiness status. Corresponds to the JSON property status

Returns:

  • (String)


1199
1200
1201
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1199

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1206
1207
1208
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1206

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