Sha256: ba03179fb97f80816e2f931411f0d30c3344d5250f63ce59b940f69f35fe14ca

Contents?: true

Size: 375 Bytes

Versions: 6

Compression:

Stored size: 375 Bytes

Contents

module Rooftop
  module Pagination
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def new_collection(parsed_data)
        parsed_data[:metadata] ||= {}
        parsed_data[:metadata][:pagination] = parsed_data[:pagination]

        Her::Model::Attributes.initialize_collection(self, parsed_data)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rooftop-0.1.4.1 lib/rooftop/pagination.rb
rooftop-0.1.4 lib/rooftop/pagination.rb
rooftop-0.1.3 lib/rooftop/pagination.rb
rooftop-0.1.2 lib/rooftop/pagination.rb
rooftop-0.1.1 lib/rooftop/pagination.rb
rooftop-0.0.7.4 lib/rooftop/pagination.rb