Class: Onlyfans::Models::PayoutRetrieveBalancesResponse::Data::WithdrawalPeriodOption
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::PayoutRetrieveBalancesResponse::Data::WithdrawalPeriodOption
- Defined in:
- lib/onlyfans/models/payout_retrieve_balances_response.rb,
sig/onlyfans/models/payout_retrieve_balances_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(code: nil, name: nil) ⇒ WithdrawalPeriodOption
constructor
A new instance of WithdrawalPeriodOption.
- #to_hash ⇒ { code: String, name: String }
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(code: nil, name: nil) ⇒ WithdrawalPeriodOption
Returns a new instance of WithdrawalPeriodOption.
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 167 class WithdrawalPeriodOption < Onlyfans::Internal::Type::BaseModel # @!attribute code # # @return [String, nil] optional :code, String # @!attribute name # # @return [String, nil] optional :name, String # @!method initialize(code: nil, name: nil) # @param code [String] # @param name [String] end |
Instance Attribute Details
#code ⇒ String?
171 |
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 171 optional :code, String |
#name ⇒ String?
176 |
# File 'lib/onlyfans/models/payout_retrieve_balances_response.rb', line 176 optional :name, String |
Instance Method Details
#to_hash ⇒ { code: String, name: String }
233 |
# File 'sig/onlyfans/models/payout_retrieve_balances_response.rbs', line 233
def to_hash: -> { code: String, name: String }
|