Module: Remit::GetPipeline

Included in:
API
Defined in:
lib/remit/get_pipeline.rb

Defined Under Namespace

Classes: MultiUsePipeline, Pipeline, PostpaidPipeline, RecipientPipeline, RecurringUsePipeline, SingleUsePipeline

Instance Method Summary collapse

Instance Method Details

#get_multi_use_pipeline(options) ⇒ Object



159
160
161
# File 'lib/remit/get_pipeline.rb', line 159

def get_multi_use_pipeline(options)
  self.get_pipeline(MultiUsePipeline, options)
end

#get_pipeline(pipeline_subclass, options) ⇒ Object



175
176
177
178
179
# File 'lib/remit/get_pipeline.rb', line 175

def get_pipeline(pipeline_subclass, options)
  pipeline = pipeline_subclass.new(self, {
    :caller_key => @access_key
  }.merge(options))
end

#get_postpaid_pipeline(options) ⇒ Object



171
172
173
# File 'lib/remit/get_pipeline.rb', line 171

def get_postpaid_pipeline(options)
  self.get_pipeline(PostpaidPipeline, options)
end

#get_recipient_pipeline(options) ⇒ Object



163
164
165
# File 'lib/remit/get_pipeline.rb', line 163

def get_recipient_pipeline(options)
  self.get_pipeline(RecipientPipeline, options)
end

#get_recurring_use_pipeline(options) ⇒ Object



167
168
169
# File 'lib/remit/get_pipeline.rb', line 167

def get_recurring_use_pipeline(options)
  self.get_pipeline(RecurringUsePipeline, options)
end

#get_single_use_pipeline(options) ⇒ Object



155
156
157
# File 'lib/remit/get_pipeline.rb', line 155

def get_single_use_pipeline(options)
  self.get_pipeline(SingleUsePipeline, options)
end