class ContentNetwork::PaginationParams
Constants
- ATTRS
Public Class Methods
build(params)
click to toggle source
# File lib/content_network/pagination_params.rb, line 3 def self.build(params) new(params.slice(*ATTRS)) end
new(page: 1)
click to toggle source
# File lib/content_network/pagination_params.rb, line 11 def initialize(page: 1) @page = page end
Public Instance Methods
to_h()
click to toggle source
# File lib/content_network/pagination_params.rb, line 15 def to_h { page: @page } end