Module: Remit::GetPipeline

Included in:
API
Defined in:
lib/remit2/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



173
174
175
# File 'lib/remit2/get_pipeline.rb', line 173

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

#get_pipeline(pipeline_subclass, options) ⇒ Object



189
190
191
192
193
# File 'lib/remit2/get_pipeline.rb', line 189

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

#get_postpaid_pipeline(options) ⇒ Object



185
186
187
# File 'lib/remit2/get_pipeline.rb', line 185

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

#get_recipient_pipeline(options) ⇒ Object



177
178
179
# File 'lib/remit2/get_pipeline.rb', line 177

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

#get_recurring_use_pipeline(options) ⇒ Object



181
182
183
# File 'lib/remit2/get_pipeline.rb', line 181

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

#get_single_use_pipeline(options) ⇒ Object



169
170
171
# File 'lib/remit2/get_pipeline.rb', line 169

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