Class: Google::Apis::MybusinessV3::TimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::TimePeriod
- 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
Represents a span of time that the business is open, starting on the specified open day/time and closing on the specified close day/time. The closing time must occur after the opening time, for example later in the same day, or on a subsequent day.
Instance Attribute Summary collapse
-
#close_day ⇒ String
Indicates the day of the week this period ends on.
-
#close_time ⇒ String
Time in 24hr ISO 8601 extended format (hh:mm).
-
#open_day ⇒ String
Indicates the day of the week this period starts on.
-
#open_time ⇒ String
Time in 24hr ISO 8601 extended format (hh:mm).
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimePeriod
constructor
A new instance of TimePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimePeriod
Returns a new instance of TimePeriod
1829 1830 1831 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1829 def initialize(**args) update!(**args) end |
Instance Attribute Details
#close_day ⇒ String
Indicates the day of the week this period ends
on.
Corresponds to the JSON property closeDay
1808 1809 1810 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1808 def close_day @close_day end |
#close_time ⇒ String
Time in 24hr ISO 8601 extended format (hh:mm). Valid values are
00:00-24:00, where 24:00 represents midnight at the end of the specified day
field.
Corresponds to the JSON property closeTime
1815 1816 1817 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1815 def close_time @close_time end |
#open_day ⇒ String
Indicates the day of the week this period starts
on.
Corresponds to the JSON property openDay
1821 1822 1823 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1821 def open_day @open_day end |
#open_time ⇒ String
Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00,
where 24:00 represents midnight at the end of the specified day field.
Corresponds to the JSON property openTime
1827 1828 1829 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1827 def open_time @open_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1834 1835 1836 1837 1838 1839 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1834 def update!(**args) @close_day = args[:close_day] if args.key?(:close_day) @close_time = args[:close_time] if args.key?(:close_time) @open_day = args[:open_day] if args.key?(:open_day) @open_time = args[:open_time] if args.key?(:open_time) end |