Sha256: 372c7d43a3518663256f9e8f5fef9f3c605cb7667ee4bf44be88b53ec840a538

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module Paymill
  class Offer
    include Paymill::Operations::All
    include Paymill::Operations::Create
    include Paymill::Operations::Delete
    include Paymill::Operations::Find

    attr_accessor :id, :name, :amount, :interval, :trial_period_days, :currency

    def initialize(attributes = {})
      attributes.each_pair do |key, value|
        instance_variable_set("@#{key}", value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paymill-0.1.0 lib/paymill/offer.rb
paymill-0.0.3 lib/paymill/offer.rb