Class: Telegram::Bot::Types::Invoice

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

#currencyString (readonly)

Returns the value of attribute currency.

Returns:

  • (String)


11
12
13
# File 'sig/telegram/bot/types/invoice.rbs', line 11

def currency
  @currency
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


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

def description
  @description
end

#start_parameterString (readonly)

Returns the value of attribute start_parameter.

Returns:

  • (String)


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

def start_parameter
  @start_parameter
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

#total_amountInteger (readonly)

Returns the value of attribute total_amount.

Returns:

  • (Integer)


12
13
14
# File 'sig/telegram/bot/types/invoice.rbs', line 12

def total_amount
  @total_amount
end

Class Method Details

.new(title:, description:, start_parameter:, currency:, total_amount:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(title:, description:, start_parameter:, currency:, total_amount:) ⇒ instance

    Parameters:

    • title: (String)
    • description: (String)
    • start_parameter: (String)
    • currency: (String)
    • total_amount: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (title: String, description: String, start_parameter: String, currency: String, total_amount: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance