Sha256: 14d2397f3764e5cd8fb9a91662d0c8b8d2ab29a01954ab402f5cc4b3cd3327ad

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

require 'credit_gateway/base_model'

module CreditGateway
  class RatingStatus < BaseModel
    attributes :status, :description

    def complete?
      status == 'complete'
    end

    def pending?
      status == 'pending'
    end

    def unprocessable?
      status == 'unprocessable'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
credit_gateway-0.3.2 lib/credit_gateway/rating_status.rb
credit_gateway-0.3.1 lib/credit_gateway/rating_status.rb
credit_gateway-0.3.0 lib/credit_gateway/rating_status.rb