Class: DemoApiScalarGalaxy::Models::PaginatedResource::Meta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amritk-galaxy-staging/models/paginated_resource.rb,
sig/amritk-galaxy-staging/models/paginated_resource.rbs

Overview

See Also:

  • DemoApiScalarGalaxy::Models::PaginatedResource#meta

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

Parameters:

  • limit (Integer) (defaults to: nil)
  • next_ (String, nil) (defaults to: nil)
  • offset (Integer) (defaults to: nil)
  • total (Integer) (defaults to: nil)


# File 'lib/amritk-galaxy-staging/models/paginated_resource.rb', line 38


Instance Attribute Details

#limit ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


21
# File 'lib/amritk-galaxy-staging/models/paginated_resource.rb', line 21

optional :limit, Integer

#next_ ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


26
# File 'lib/amritk-galaxy-staging/models/paginated_resource.rb', line 26

optional :next_, String, api_name: :next, nil?: true

#offset ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


31
# File 'lib/amritk-galaxy-staging/models/paginated_resource.rb', line 31

optional :offset, Integer

#total ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


36
# File 'lib/amritk-galaxy-staging/models/paginated_resource.rb', line 36

optional :total, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


44
# File 'sig/amritk-galaxy-staging/models/paginated_resource.rbs', line 44

def to_hash: -> {