Class: Peddler::APIs::FulfillmentInboundV0::Amount

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/fulfillment_inbound_v0.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#currency_codeString (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String)


81
82
83
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 81

def currency_code
  @currency_code
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


82
83
84
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 82

def value
  @value
end

Class Method Details

.[](currency_code:, value:) ⇒ Peddler::APIs::FulfillmentInboundV0::Amount .[](arg0, arg1) ⇒ Peddler::APIs::FulfillmentInboundV0::Amount

Overloads:



74
75
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 74

def self.[]: (currency_code: String, value: Float) -> Peddler::APIs::FulfillmentInboundV0::Amount
| (String, Float) -> Peddler::APIs::FulfillmentInboundV0::Amount

.members[ :currency_code, :value ]

Returns:

  • ([ :currency_code, :value ])


77
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 77

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

.new(currency_code:, value:) ⇒ Peddler::APIs::FulfillmentInboundV0::Amount .new(arg0, arg1) ⇒ Peddler::APIs::FulfillmentInboundV0::Amount

Overloads:



72
73
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 72

def self.new: (currency_code: String, value: Float) -> Peddler::APIs::FulfillmentInboundV0::Amount
| (String, Float) -> Peddler::APIs::FulfillmentInboundV0::Amount

.parsePeddler::APIs::FulfillmentInboundV0::Amount

Parameters:

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

Returns:



79
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 79

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

Instance Method Details

#members[ :currency_code, :value ]

Returns:

  • ([ :currency_code, :value ])


84
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 84

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

#to_h{ currency_code: String, value: Float }

Returns:

  • ({ currency_code: String, value: Float })


85
# File 'sig/peddler/apis/fulfillment_inbound_v0.rbs', line 85

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