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