Class: Onlyfans::Models::TrackingLinkCreateResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/tracking_link_create_response.rb,
sig/onlyfans/models/tracking_link_create_response.rbs

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(id: nil, campaign_code: nil, campaign_name: nil, count_subscribers: nil, count_transitions: nil, created_at: nil, end_date: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • campaign_code (Integer) (defaults to: nil)
  • campaign_name (String) (defaults to: nil)
  • count_subscribers (Integer) (defaults to: nil)
  • count_transitions (Integer) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • end_date (String, nil) (defaults to: nil)


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


Instance Attribute Details

#campaign_code ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


123
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 123

optional :campaign_code, Integer, api_name: :campaignCode

#campaign_name ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


128
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 128

optional :campaign_name, String, api_name: :campaignName

#count_subscribers ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


133
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 133

optional :count_subscribers, Integer, api_name: :countSubscribers

#count_transitions ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


138
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 138

optional :count_transitions, Integer, api_name: :countTransitions

#created_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


143
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 143

optional :created_at, String, api_name: :createdAt

#end_date ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


148
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 148

optional :end_date, String, api_name: :endDate, nil?: true

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


118
# File 'lib/onlyfans/models/tracking_link_create_response.rb', line 118

optional :id, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


199
# File 'sig/onlyfans/models/tracking_link_create_response.rbs', line 199

def to_hash: -> {