Class: Telegram::Bot::Types::AffiliateInfo
- Defined in:
- sig/telegram/bot/types/affiliate_info.rbs
Instance Attribute Summary collapse
-
#affiliate_chat ⇒ Chat?
readonly
Returns the value of attribute affiliate_chat.
-
#affiliate_user ⇒ User?
readonly
Returns the value of attribute affiliate_user.
-
#amount ⇒ Integer
readonly
Returns the value of attribute amount.
-
#commission_per_mille ⇒ Integer
readonly
Returns the value of attribute commission_per_mille.
-
#nanostar_amount ⇒ Integer?
readonly
Returns the value of attribute nanostar_amount.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#affiliate_chat ⇒ Chat? (readonly)
Returns the value of attribute affiliate_chat.
9 10 11 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 9 def affiliate_chat @affiliate_chat end |
#affiliate_user ⇒ User? (readonly)
Returns the value of attribute affiliate_user.
8 9 10 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 8 def affiliate_user @affiliate_user end |
#amount ⇒ Integer (readonly)
Returns the value of attribute amount.
11 12 13 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 11 def amount @amount end |
#commission_per_mille ⇒ Integer (readonly)
Returns the value of attribute commission_per_mille.
10 11 12 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 10 def commission_per_mille @commission_per_mille end |
#nanostar_amount ⇒ Integer? (readonly)
Returns the value of attribute nanostar_amount.
12 13 14 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 12 def nanostar_amount @nanostar_amount end |
Class Method Details
.new(affiliate_user:, affiliate_chat:, commission_per_mille:, amount:, nanostar_amount:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/affiliate_info.rbs', line 6
def self.new: (?affiliate_user: User, ?affiliate_chat: Chat, commission_per_mille: Integer, amount: Integer, ?nanostar_amount: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|