Sha256: eba51fc6572d6b00a7ba376af9c5200ffdad4d529fbc230fd5e6ae0706f4ae65

Contents?: true

Size: 359 Bytes

Versions: 21

Compression:

Stored size: 359 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/entities/webhook_collection.rb
myfinance-1.8.1 lib/myfinance/entities/webhook_collection.rb
myfinance-1.8.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.7.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.6 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.5 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.4 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.3 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.1 lib/myfinance/entities/webhook_collection.rb
myfinance-1.6.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.5.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.4.1 lib/myfinance/entities/webhook_collection.rb
myfinance-1.4.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.3.1 lib/myfinance/entities/webhook_collection.rb
myfinance-1.3.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.2.1 lib/myfinance/entities/webhook_collection.rb
myfinance-1.2.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.1.0 lib/myfinance/entities/webhook_collection.rb
myfinance-1.0.0 lib/myfinance/entities/webhook_collection.rb
myfinance-0.7.0 lib/myfinance/entities/webhook_collection.rb