Sha256: bba9ebb833a2784a7f2f84bb362526d919a0d3f47f4fb77dd9cae23857e47b56
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
module HomePage class PaginationMetadata attr_accessor :current_page, :per_page, :total_entries alias_method :total_pages, :total_entries def initialize(attributes) attributes.each{|k,v| self.send("#{k}=", v) if self.respond_to?("#{k}=") } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
home_page-0.0.5 | lib/home_page/pagination_metadata.rb |