Sha256: 8d2ece802721a13cc369738b9bd5f47d29e78e9ce89b7f7c0cc36e83167354f4
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
# frozen_string_literal: true require 'credit_gateway/base_model' require 'credit_gateway/rating_metadata' module CreditGateway class Rating < BaseModel attributes :score, :algorithm_type, :algorithm_version, :metadata def self.build(json:) super.tap do |record| record.metadata = RatingMetadata.build(json: (record.metadata || {})) 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.rb |
credit_gateway-0.3.1 | lib/credit_gateway/rating.rb |
credit_gateway-0.3.0 | lib/credit_gateway/rating.rb |