Class: Telegram::Bot::Types::BusinessOpeningHours

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/business_opening_hours.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#opening_hoursArray[BusinessOpeningHoursInterval] (readonly)

Returns the value of attribute opening_hours.

Returns:



9
10
11
# File 'sig/telegram/bot/types/business_opening_hours.rbs', line 9

def opening_hours
  @opening_hours
end

#time_zone_nameString (readonly)

Returns the value of attribute time_zone_name.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/business_opening_hours.rbs', line 8

def time_zone_name
  @time_zone_name
end

Class Method Details

.new(time_zone_name:, opening_hours:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(time_zone_name:, opening_hours:) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/business_opening_hours.rbs', line 6

def self.new: (time_zone_name: String, opening_hours: Array[BusinessOpeningHoursInterval]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance