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



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

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

#get_pipeline(pipeline_subclass, options) ⇒ Object



183
184
185
186
187
# File 'lib/remit/get_pipeline.rb', line 183

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

#get_postpaid_pipeline(options) ⇒ Object



179
180
181
# File 'lib/remit/get_pipeline.rb', line 179

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

#get_recipient_pipeline(options) ⇒ Object



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

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

#get_recurring_use_pipeline(options) ⇒ Object



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

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

#get_single_use_pipeline(options) ⇒ Object



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

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