class Scribesend::Entry

Public Class Methods

create(params={}, opts={}) click to toggle source
# File lib/scribesend/entry.rb, line 3
def self.create(params={}, opts={})
  opts = {
    :content_type => 'application/json'
  }.merge(opts)

  response, opts = self.request(:post, url, params.to_json, opts)
  Util.convert_to_scribesend_object(response, opts)
end
create_capture_entry(params, opts={}) click to toggle source
# File lib/scribesend/entry.rb, line 17
def self.create_capture_entry(params, opts={})
  response, opts = self.request(:post, url + "/capture", params, opts)
  Util.convert_to_scribesend_object(response, opts)
end
create_charge_and_capture_entry(params, opts={}) click to toggle source
# File lib/scribesend/entry.rb, line 22
def self.create_charge_and_capture_entry(params, opts={})
  response, opts = self.request(:post, url + "/charge_and_capture", params, opts)
  Util.convert_to_scribesend_object(response, opts)
end
create_charge_entry(params, opts={}) click to toggle source
# File lib/scribesend/entry.rb, line 12
def self.create_charge_entry(params, opts={})
  response, opts = self.request(:post, url + "/charge", params, opts)
  Util.convert_to_scribesend_object(response, opts)
end