Class: Myfinance::Entities::CustomClassifierValueCollection
- Inherits:
-
Collection
- Object
- Base
- Collection
- Myfinance::Entities::CustomClassifierValueCollection
- Defined in:
- lib/myfinance/entities/custom_classifier_value_collection.rb
Overview
A wrapper to Myfinance custom_classifiers collection
Constant Summary
Constants inherited from Collection
Myfinance::Entities::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_collection ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/myfinance/entities/custom_classifier_value_collection.rb', line 7 def build_collection response.parsed_body.each do |attributes| collection.push( Myfinance::Entities::CustomClassifierValue.new(attributes["custom_classifier_value"]) ) end end |