Class: PurposePlatformQueuedClient::Action
- Defined in:
- lib/purpose-platform-queued-client/action.rb
Instance Method Summary collapse
- #base_path ⇒ Object
- #create(params) ⇒ Object
-
#default_params ⇒ Object
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.
Instance Method Details
#base_path ⇒ Object
22 23 24 |
# File 'lib/purpose-platform-queued-client/action.rb', line 22 def base_path 'action' end |
#create(params) ⇒ Object
26 27 28 29 |
# File 'lib/purpose-platform-queued-client/action.rb', line 26 def create(params) params = params.merge(default_params) super(params) end |
#default_params ⇒ Object
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“
15 16 17 18 19 20 |
# File 'lib/purpose-platform-queued-client/action.rb', line 15 def default_params { guard: '', hp_enabled: 'true' } end |