Sha256: 0148423296411759612de8641a16de864e9e2a1a728d26b52e81cc62c47f405e

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

module Rexpense
  module Entities
    #
    # A wrapper to Comment collection
    #
    class CommentCollection < Collection
      def build_collection
        response.parsed_body['comments'].each do |attributes|
          collection.push(Rexpense::Entities::Comment.new(attributes))
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 lib/rexpense/entities/comment_collection.rb
rexpense-2.0.0 lib/rexpense/entities/comment_collection.rb
rexpense-1.0.0 lib/rexpense/entities/comment_collection.rb