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

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)


14
15
16
# File 'sig/peddler/notifications/fee_promotion.rbs', line 14

def amount
  @amount
end

#currency_codeString (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String)


15
16
17
# File 'sig/peddler/notifications/fee_promotion.rbs', line 15

def currency_code
  @currency_code
end

Class Method Details

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

Overloads:



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

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

.members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


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

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

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

Overloads:



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

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

.parsePeddler::Notifications::FeePromotion::FeeAmount

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


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

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

#to_h{ amount: Integer, currency_code: String }

Returns:

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


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

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