Sha256: 7d1de80fcf87bb389691b3627129c461fe336e2ca904556d15725d107848be40

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

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