Class: Myfinance::Entities::PayableAccountCollection

Inherits:
Collection
  • Object
show all
Defined in:
lib/myfinance/entities/payable_account_collection.rb

Overview

A wrapper to Myfinance payable accounts collection

Constant Summary

Constants inherited from Collection

Collection::PAGE_REGEX

Instance Attribute Summary

Attributes inherited from Collection

#collection, #headers, #response

Instance Method Summary collapse

Methods inherited from Collection

#build, build, #first_page, #initialize, #last_page, #next_page, #previous_page

Constructor Details

This class inherits a constructor from Myfinance::Entities::Collection

Instance Method Details

#build_collectionObject



7
8
9
10
11
# File 'lib/myfinance/entities/payable_account_collection.rb', line 7

def build_collection
  response.parsed_body.each do |attributes|
    collection.push(Myfinance::Entities::PayableAccount.new(attributes["payable_account"]))
  end
end