Sha256: 1957ae3513cf1c73961d2fd0626808f349024f91c6fd6c508640ad73981b6799
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
# 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
credit_gateway-0.3.2 | lib/credit_gateway/rating_metadata.rb |
credit_gateway-0.3.1 | lib/credit_gateway/rating_metadata.rb |
credit_gateway-0.3.0 | lib/credit_gateway/rating_metadata.rb |