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

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)


52
53
54
# File 'sig/peddler/notifications/fee_promotion.rbs', line 52

def amount
  @amount
end

#currency_codeString (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String)


53
54
55
# File 'sig/peddler/notifications/fee_promotion.rbs', line 53

def currency_code
  @currency_code
end

Class Method Details

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

Overloads:



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

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

.members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


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

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

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

Overloads:



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

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

.parsePeddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


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

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

#to_h{ amount: Integer, currency_code: String }

Returns:

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


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

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