Class: Peddler::Notifications::FeePromotion::FeePromotion

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/notifications/fee_promotion.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountInteger (readonly)

Returns the value of attribute amount.

Returns:

  • (Integer)


69
70
71
# File 'sig/peddler/notifications/fee_promotion.rbs', line 69

def amount
  @amount
end

#currency_codeString (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String)


70
71
72
# File 'sig/peddler/notifications/fee_promotion.rbs', line 70

def currency_code
  @currency_code
end

Class Method Details

.[](amount:, currency_code:) ⇒ Peddler::Notifications::FeePromotion::FeePromotion .[](arg0, arg1) ⇒ Peddler::Notifications::FeePromotion::FeePromotion

Overloads:



62
63
# File 'sig/peddler/notifications/fee_promotion.rbs', line 62

def self.[]: (amount: Integer, currency_code: String) -> Peddler::Notifications::FeePromotion::FeePromotion
| (Integer, String) -> Peddler::Notifications::FeePromotion::FeePromotion

.members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


65
# File 'sig/peddler/notifications/fee_promotion.rbs', line 65

def self.members: () -> [ :amount, :currency_code ]

.new(amount:, currency_code:) ⇒ Peddler::Notifications::FeePromotion::FeePromotion .new(arg0, arg1) ⇒ Peddler::Notifications::FeePromotion::FeePromotion

Overloads:



60
61
# File 'sig/peddler/notifications/fee_promotion.rbs', line 60

def self.new: (amount: Integer, currency_code: String) -> Peddler::Notifications::FeePromotion::FeePromotion
| (Integer, String) -> Peddler::Notifications::FeePromotion::FeePromotion

.parsePeddler::Notifications::FeePromotion::FeePromotion

Parameters:

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

Returns:



67
# File 'sig/peddler/notifications/fee_promotion.rbs', line 67

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::FeePromotion::FeePromotion

Instance Method Details

#members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


72
# File 'sig/peddler/notifications/fee_promotion.rbs', line 72

def members: () -> [ :amount, :currency_code ]

#to_h{ amount: Integer, currency_code: String }

Returns:

  • ({ amount: Integer, currency_code: String })


73
# File 'sig/peddler/notifications/fee_promotion.rbs', line 73

def to_h: () -> { amount: Integer, currency_code: String }