Module: Remit::GetPipeline

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

Defined Under Namespace

Modules: UsageLimits, ValidityPeriod Classes: EditTokenPipeline, MultiUsePipeline, Pipeline, PostpaidPipeline, PrepaidPipeline, RecipientPipeline, RecurringUsePipeline, SenderPipeline, SingleUsePipeline

Instance Method Summary collapse

Instance Method Details

#get_edit_token_pipeline(options) ⇒ Object



271
272
273
# File 'lib/remit/get_pipeline.rb', line 271

def get_edit_token_pipeline(options)
  get_pipeline(Remit::GetPipeline::EditTokenPipeline, options)
end

#get_multi_use_pipeline(options) ⇒ Object



256
257
258
# File 'lib/remit/get_pipeline.rb', line 256

def get_multi_use_pipeline(options)
  get_pipeline(Remit::GetPipeline::MultiUsePipeline, options)
end

#get_pipeline(pipeline_subclass, options) ⇒ Object



275
276
277
278
279
280
281
282
283
284
# File 'lib/remit/get_pipeline.rb', line 275

def get_pipeline(pipeline_subclass, options)
  # TODO: How does @pipeline_url work here?
  #       instance variable is setup in initializer of class.
  pipeline_subclass.new(self, @pipeline_url, {
    :caller_key => @access_key,
    :signature_version=>Remit::API::SIGNATURE_VERSION,
    :signature_method=>Remit::API::SIGNATURE_METHOD,
    :version=>Remit::API::PIPELINE_VERSION
  }.merge(options))
end

#get_postpaid_pipeline(options) ⇒ Object



265
266
267
# File 'lib/remit/get_pipeline.rb', line 265

def get_postpaid_pipeline(options)
  get_pipeline(Remit::GetPipeline::PostpaidPipeline, options)
end

#get_prepaid_pipeline(options) ⇒ Object



268
269
270
# File 'lib/remit/get_pipeline.rb', line 268

def get_prepaid_pipeline(options)
  get_pipeline(Remit::GetPipeline::PrepaidPipeline, options)
end

#get_recipient_pipeline(options) ⇒ Object



259
260
261
# File 'lib/remit/get_pipeline.rb', line 259

def get_recipient_pipeline(options)
  get_pipeline(Remit::GetPipeline::RecipientPipeline, options)
end

#get_recurring_use_pipeline(options) ⇒ Object



262
263
264
# File 'lib/remit/get_pipeline.rb', line 262

def get_recurring_use_pipeline(options)
  get_pipeline(Remit::GetPipeline::RecurringUsePipeline, options)
end

#get_single_use_pipeline(options) ⇒ Object



253
254
255
# File 'lib/remit/get_pipeline.rb', line 253

def get_single_use_pipeline(options)
  get_pipeline(Remit::GetPipeline::SingleUsePipeline, options)
end