Class: GrowsurfRuby::Models::AffiliateApplicationListResponse

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

Overview

See Also:

  • GrowsurfRuby::Resources::Campaign#list_affiliate_applications

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(applications:, total:, limit: nil, offset: nil) ⇒ Object

Parameters:

  • applications (Array<GrowsurfRuby::Models::AffiliateApplication>)

    One page of the program's applications, newest first.

  • total (Integer)

    Total number of applications matching the filter.

  • limit (Integer) (defaults to: nil)

    The page size used.

  • offset (Integer) (defaults to: nil)

    The offset this page started at.



# File 'lib/growsurf_ruby/models/affiliate_application_list_response.rb', line 32

Instance Attribute Details

#applicationsArray<GrowsurfRuby::Models::AffiliateApplication>

One page of the program's applications, newest first.



11
12
# File 'lib/growsurf_ruby/models/affiliate_application_list_response.rb', line 11

required :applications,
-> { GrowsurfRuby::Internal::Type::ArrayOf[GrowsurfRuby::AffiliateApplication] }

#limitInteger?

The page size used.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


24
# File 'lib/growsurf_ruby/models/affiliate_application_list_response.rb', line 24

optional :limit, Integer

#offsetInteger?

The offset this page started at.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


30
# File 'lib/growsurf_ruby/models/affiliate_application_list_response.rb', line 30

optional :offset, Integer

#totalInteger

Total number of applications matching the filter.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


18
# File 'lib/growsurf_ruby/models/affiliate_application_list_response.rb', line 18

required :total, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


31
# File 'sig/growsurf_ruby/models/affiliate_application_list_response.rbs', line 31

def to_hash: -> {