class PurposePlatformQueuedClient::Action

Public Instance Methods

base_path() click to toggle source
# File lib/purpose-platform-queued-client/action.rb, line 22
def base_path
  'action'
end
create(params) click to toggle source
Calls superclass method
# File lib/purpose-platform-queued-client/action.rb, line 26
def create(params)
  params = params.merge(default_params)
  super(params)
end
default_params() click to toggle source

guard: Bot prevention! You must pass a blank string for this field hp_enabled: Bot prevention! You must pass a checked checkbox for this field. Note the checkbox should be hidden from the user. hp_disabled: Bot prevention! You must not pass this field, or pass an unchecked checkbox, which should be hidden from the user. member: (String) The first name (or full name) of the user. Since many forms don’t collect last name as a separate field, you can put the whole thing in this one. member: (String) Last name of user member: (String) Email address member: (String) Street address of user member: (String) Zip / Post code of user member: (String, limit 2 characters) Two character ISO code for country. tag: (String) The slug name (eg. “save-the-whales’) for the campaign. org: (String) MUST BE ”fftf“

# File lib/purpose-platform-queued-client/action.rb, line 15
def default_params
  {
    guard: '',
    hp_enabled: 'true'
  }
end