Sha256: f519ed885aad405ea41b64dc1cc73e811c80f432e3742192d58385bc7029168d

Contents?: true

Size: 222 Bytes

Versions: 8

Compression:

Stored size: 222 Bytes

Contents

module RealSavvy::Concern::IndexForAdapter
  def index(page_size: nil, page_number: nil, page: {})
    page[:size] ||= page_size
    page[:number] ||= page_number
    get("./api/v3/#{path_prefix}", {page: page})
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
real_savvy-0.0.10 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.9 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.8 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.7 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.6 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.5 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.4 lib/real_savvy/concern/index_for_adapter.rb
real_savvy-0.0.3 lib/real_savvy/concern/index_for_adapter.rb