Sha256: f52870cca0e09c3f02372e1c7f27fd5d079dfd5a0509c322fe8fd397936c965d

Contents?: true

Size: 304 Bytes

Versions: 15

Compression:

Stored size: 304 Bytes

Contents

module Myfinance
  module Entities
    class SaleRuleCollection < Collection
      def build_collection
        response.parsed_body.each do |attributes|
          collection.push(
            Myfinance::Entities::SaleRule.new(attributes["sale_rule"])
          )
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.8.1 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.8.0 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.7.0 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.6 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.5 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.4 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.3 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.1 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.6.0 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.5.0 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.4.1 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.4.0 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.3.1 lib/myfinance/entities/sale_rule_collection.rb
myfinance-1.3.0 lib/myfinance/entities/sale_rule_collection.rb