# frozen_string_literal: true require 'time' require 'credit_gateway/base_model' module CreditGateway class RatingMetadata < BaseModel attributes :description, :class, :scale, :label, :implied_rating, :frequency, :created_at def self.build(json:) super.tap do |record| record.created_at = Time.parse(record.created_at) if record.created_at end end end end