Class: Telegram::Bot::Types::ShippingOption

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/shipping_option.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

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#pricesArray[LabeledPrice] (readonly)

Returns the value of attribute prices.

Returns:



10
11
12
# File 'sig/telegram/bot/types/shipping_option.rbs', line 10

def prices
  @prices
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

Class Method Details

.new(id:, title:, prices:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, title:, prices:) ⇒ instance

    Parameters:

    • id: (String)
    • title: (String)
    • prices: (Array[LabeledPrice])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (id: String, title: String, prices: Array[LabeledPrice]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance