Sha256: 0cf1c845ddf98a527690018c7a9e8f548a4a22471c1c0371001fb4a3f0ddd341

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

module Rexpense
  module Entities
    #
    # A wrapper to Attachment collection
    #
    class AttachmentCollection < Collection
      def build_collection
        response.parsed_body['attachments'].each do |attributes|
          collection.push(Rexpense::Entities::Attachment.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/attachment_collection.rb
rexpense-2.0.0 lib/rexpense/entities/attachment_collection.rb
rexpense-1.0.0 lib/rexpense/entities/attachment_collection.rb