Class: Yoomoney::Models::Invoice::DeliveryMethod::DeliveryMethodSelf

Inherits:
DeliveryMethod show all
Defined in:
lib/yoomoney/models/invoice.rb,
sig/yoomoney/models/invoice.rbs

Instance Attribute Summary collapse

Attributes inherited from DeliveryMethod

#type

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ DeliveryMethodSelf

Returns a new instance of DeliveryMethodSelf.

Parameters:

  • url: (String)


120
# File 'sig/yoomoney/models/invoice.rbs', line 120

def initialize: (?url: String) -> void

Instance Attribute Details

#url ⇒ String?

URL страницы счета.

Parameters:

  • _ (String)

Returns:

  • (String, nil)


144
# File 'lib/yoomoney/models/invoice.rb', line 144

optional :url, String

Instance Method Details

#to_hash ⇒ { url: String }

Returns:

  • ({ url: String })


122
# File 'sig/yoomoney/models/invoice.rbs', line 122

def to_hash: -> { url: String }