Sha256: edb21f9bed9505d5774d146c76b69777a821c399f5473e137e8b4a06d521b9b6

Contents?: true

Size: 332 Bytes

Versions: 22

Compression:

Stored size: 332 Bytes

Contents

module Myfinance
  module Entities
    #
    # A wrapper to Myfinance people collection
    #
    class PersonCollection < Collection
      def build_collection
        response.parsed_body.each do |attributes|
          collection.push(Myfinance::Entities::Person.new(attributes["person"]))
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
myfinance-0.6.0 lib/myfinance/entities/person_collection.rb
myfinance-0.5.0 lib/myfinance/entities/person_collection.rb