# frozen_string_literal: true require 'time' require 'truelayer/base_model' module Truelayer class Balance < BaseModel attributes :currency, :available, :current, :overdraft, :update_timestamp def self.build(json:) super.tap do |record| record.update_timestamp = Time.parse(record.update_timestamp) if record.update_timestamp end end end end