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