Sha256: 17c9c57770f558c7f4557dbdbd61e6111715ed371a99ef33c32b35034c822c2c

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 Bytes

Contents

module ShelbyArena
  module Response
    class ContributionFund < Base
      MAP = {
        id: 'ContributionFundId',
        contribution_id: 'ContributionId',
        amount: 'Amount',
        fund: 'Fund',
        fund_id: 'FundId'
      }.freeze

      def format_single(data)
        response = to_h(MAP, data)
        response[:fund] = Fund.format(response[:fund])
        response[:amount] = response[:amount].to_f
        response
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shelby_arena-0.0.8 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.7 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.6 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.5 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.4 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.3 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.2 lib/shelby_arena/response/contribution_fund.rb
shelby_arena-0.0.1 lib/shelby_arena/response/contribution_fund.rb