Class: Onlyfans::Models::FanGetSubscriptionHistoryResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/fan_get_subscription_history_response.rb

Instance Attribute Summary collapse

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(expire_date: nil, price: nil, subscribe_date: nil) ⇒ Object

Parameters:

  • expire_date (String) (defaults to: nil)
  • price (Float) (defaults to: nil)
  • subscribe_date (String) (defaults to: nil)


136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/onlyfans/models/fan_get_subscription_history_response.rb', line 136

class List < Onlyfans::Internal::Type::BaseModel
  # @!attribute expire_date
  #
  #   @return [String, nil]
  optional :expire_date, String, api_name: :expireDate

  # @!attribute price
  #
  #   @return [Float, nil]
  optional :price, Float

  # @!attribute subscribe_date
  #
  #   @return [String, nil]
  optional :subscribe_date, String, api_name: :subscribeDate

  # @!method initialize(expire_date: nil, price: nil, subscribe_date: nil)
  #   @param expire_date [String]
  #   @param price [Float]
  #   @param subscribe_date [String]
end

Instance Attribute Details

#expire_dateString?

Returns:

  • (String, nil)


140
# File 'lib/onlyfans/models/fan_get_subscription_history_response.rb', line 140

optional :expire_date, String, api_name: :expireDate

#priceFloat?

Returns:

  • (Float, nil)


145
# File 'lib/onlyfans/models/fan_get_subscription_history_response.rb', line 145

optional :price, Float

#subscribe_dateString?

Returns:

  • (String, nil)


150
# File 'lib/onlyfans/models/fan_get_subscription_history_response.rb', line 150

optional :subscribe_date, String, api_name: :subscribeDate