Sha256: 087e2c1013acf7bd2cc346e90239b5ed2152d54ebcd3a7693f371f3ac1f4aaae

Contents?: true

Size: 413 Bytes

Versions: 14

Compression:

Stored size: 413 Bytes

Contents

module Access
  class Redeem
    include Access::MuchMeta

    def self.redeem_offer(offer_key, redeem_type = nil, options = {})
      Access::Api.new.redeem_offer offer_key, redeem_type, options
    end

    def self.process_batch(chunk)
      chunk.map { |redeem| new(redeem) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/redeem.rb
access-2.3.0.pre.rc1 lib/access/redeem.rb
access-2.2.0 lib/access/redeem.rb
access-2.1.5 lib/access/redeem.rb
access-2.1.4 lib/access/redeem.rb
access-2.1.3 lib/access/redeem.rb
access-2.1.2 lib/access/redeem.rb
access-2.1.1 lib/access/redeem.rb
access-2.1.0 lib/access/redeem.rb
access-2.0.55 lib/access/redeem.rb
access-2.0.54 lib/access/redeem.rb
access-2.0.53 lib/access/redeem.rb
access-2.0.52 lib/access/redeem.rb
access-2.0.51 lib/access/redeem.rb