Sha256: 4e39cc7f369c67ad892f9ff93d3529a871871960b2f6f107f1abd27da47f9b48

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

module Cardflex
  class Plan
    include BaseModule

    module Type
      Add = 'add_plan'
    end

    attr_reader :result, :result_text, :result_code, :action_type
    attr_reader :plan

    def initialize(gateway, attributes)
      @gateway = gateway
      @type = attributes[:action_type]
      set_instance_variables_from_hash(attributes)
    end

    def self.create(attributes)
      Configuration.gateway.plan.request(:add_plan => attributes)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardflex-ruby-0.1.2 lib/cardflex/plan.rb
cardflex-ruby-0.1.1 lib/cardflex/plan.rb
cardflex-ruby-0.0.1 lib/cardflex/plan.rb