Sha256: 6518b79347ff222c5dbe8ee41a2db3327763f63d558224bfe34f792e311d5fc9

Contents?: true

Size: 317 Bytes

Versions: 8

Compression:

Stored size: 317 Bytes

Contents

module RockRMS
  class Fund
    def self.format(response)
      if response.is_a?(Array)
        response.map { |fund| format_fund(fund) }
      else
        format_fund(response)
      end
    end

    def self.format_fund(fund)
      {
        id:   fund['Id'],
        name: fund['Name']
      }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rock_rms-2.0.0 lib/rock_rms/responses/fund.rb
rock_rms-1.3.0 lib/rock_rms/responses/fund.rb
rock_rms-1.2.0 lib/rock_rms/responses/fund.rb
rock_rms-1.1.0 lib/rock_rms/responses/fund.rb
rock_rms-1.0.1 lib/rock_rms/responses/fund.rb
rock_rms-1.0.0 lib/rock_rms/responses/fund.rb
rock_rms-0.0.10 lib/rock_rms/responses/fund.rb
rock_rms-0.0.9 lib/rock_rms/responses/fund.rb