Sha256: f8a1e0fa9d58dbc23c46d67d38ef7bfa703ecff0ab30d6711eed47cb06fdcb7e

Contents?: true

Size: 431 Bytes

Versions: 28

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module ErpIntegration
  # The `ErpIntegration::GiftCard` exposes an uniformed API for interaction with
  # third-party ERP vendors.
  class GiftCard < Resource
    attr_accessor :id, :currency
    attr_reader :amount, :amount_available

    def amount=(value)
      @amount = parse_value(value)
    end

    def amount_available=(value)
      @amount_available = parse_value(value)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
erp_integration-0.61.0 lib/erp_integration/gift_card.rb
erp_integration-0.58.0 lib/erp_integration/gift_card.rb
erp_integration-0.60.0 lib/erp_integration/gift_card.rb
erp_integration-0.59.0 lib/erp_integration/gift_card.rb
erp_integration-0.57.0 lib/erp_integration/gift_card.rb
erp_integration-0.56.0 lib/erp_integration/gift_card.rb
erp_integration-0.55.0 lib/erp_integration/gift_card.rb
erp_integration-0.54.0 lib/erp_integration/gift_card.rb
erp_integration-0.53.1 lib/erp_integration/gift_card.rb
erp_integration-0.53.0 lib/erp_integration/gift_card.rb
erp_integration-0.52.0 lib/erp_integration/gift_card.rb
erp_integration-0.50.0 lib/erp_integration/gift_card.rb
erp_integration-0.49.0 lib/erp_integration/gift_card.rb
erp_integration-0.48.0 lib/erp_integration/gift_card.rb
erp_integration-0.43.0 lib/erp_integration/gift_card.rb
erp_integration-0.42.0 lib/erp_integration/gift_card.rb
erp_integration-0.41.0 lib/erp_integration/gift_card.rb
erp_integration-0.40.0 lib/erp_integration/gift_card.rb
erp_integration-0.39.0 lib/erp_integration/gift_card.rb
erp_integration-0.38.0 lib/erp_integration/gift_card.rb