Sha256: 89ef7d206bde96f6671f86a435a7c184b301e55132a22c6b62b0f5415ab31f39

Contents?: true

Size: 656 Bytes

Versions: 8

Compression:

Stored size: 656 Bytes

Contents

module ShelbyArena
  module Response
    class Batch < Base
      MAP = {
        name: 'BatchName',
        id: 'BatchId',
        start_date: 'BatchDate',
        end_date: 'BatchDateEnd',
        verify_amount: 'VerifyAmount',
        finalized: 'Finalized'
      }.freeze

      def format_single(data)
        response = to_h(MAP, data)
        response[:start_date]    = date_parse(response[:start_date])
        response[:end_date]      = date_parse(response[:end_date])
        response[:verify_amount] = response[:verify_amount].to_f
        response[:finalized]     = to_boolean(response[:finalized])
        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/batch.rb
shelby_arena-0.0.7 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.6 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.5 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.4 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.3 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.2 lib/shelby_arena/response/batch.rb
shelby_arena-0.0.1 lib/shelby_arena/response/batch.rb