Class: Telegram::Bot::Types::LabeledPrice

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

#amountInteger (readonly)

Returns the value of attribute amount.

Returns:

  • (Integer)


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

def amount
  @amount
end

#labelString (readonly)

Returns the value of attribute label.

Returns:

  • (String)


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

def label
  @label
end

Class Method Details

.new(label:, amount:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(label:, amount:) ⇒ instance

    Parameters:

    • label: (String)
    • amount: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (label: String, amount: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance