Class: Peddler::APIs::VendorInvoicesV1::TotalWeight

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountString (readonly)

Returns the value of attribute amount.

Returns:

  • (String)


322
323
324
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 322

def amount
  @amount
end

#unit_of_measureString (readonly)

Returns the value of attribute unit_of_measure.

Returns:

  • (String)


323
324
325
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 323

def unit_of_measure
  @unit_of_measure
end

Class Method Details

.[](amount:, unit_of_measure:) ⇒ Peddler::APIs::VendorInvoicesV1::TotalWeight .[](arg0, arg1) ⇒ Peddler::APIs::VendorInvoicesV1::TotalWeight

Overloads:



315
316
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 315

def self.[]: (amount: String, unit_of_measure: String) -> Peddler::APIs::VendorInvoicesV1::TotalWeight
| (String, String) -> Peddler::APIs::VendorInvoicesV1::TotalWeight

.members[ :amount, :unit_of_measure ]

Returns:

  • ([ :amount, :unit_of_measure ])


318
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 318

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

.new(amount:, unit_of_measure:) ⇒ Peddler::APIs::VendorInvoicesV1::TotalWeight .new(arg0, arg1) ⇒ Peddler::APIs::VendorInvoicesV1::TotalWeight

Overloads:



313
314
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 313

def self.new: (amount: String, unit_of_measure: String) -> Peddler::APIs::VendorInvoicesV1::TotalWeight
| (String, String) -> Peddler::APIs::VendorInvoicesV1::TotalWeight

.parsePeddler::APIs::VendorInvoicesV1::TotalWeight

Parameters:

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

Returns:



320
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 320

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

Instance Method Details

#members[ :amount, :unit_of_measure ]

Returns:

  • ([ :amount, :unit_of_measure ])


325
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 325

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

#to_h{ amount: String, unit_of_measure: String }

Returns:

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


326
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 326

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