Class: Peddler::Notifications::FulfillmentOrderStatus::Money

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amount ⇒ String (readonly)

Returns the value of attribute amount.

Returns:

  • (String)


31
32
33
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 31

def amount
  @amount
end

#currency_code ⇒ String (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String)


32
33
34
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 32

def currency_code
  @currency_code
end

Class Method Details

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

Overloads:



24
25
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 24

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

.members ⇒ [ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


27
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 27

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

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

Overloads:



22
23
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 22

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

.parse ⇒ Peddler::Notifications::FulfillmentOrderStatus::Money

Parameters:

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

Returns:



29
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 29

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

Instance Method Details

#members ⇒ [ :amount, :currency_code ]

Returns:

  • ([ :amount, :currency_code ])


34
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 34

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

#to_h ⇒ { amount: String, currency_code: String }

Returns:

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


35
# File 'sig/peddler/notifications/fulfillment_order_status.rbs', line 35

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