Class: EngagingNetworks::ActionCreateAction
- Inherits:
-
ActionModel
- Object
- ActionModel
- EngagingNetworks::ActionCreateAction
- Defined in:
- lib/engaging_networks/action_create_action.rb
Instance Attribute Summary collapse
-
#additional_fields ⇒ Object
Returns the value of attribute additional_fields.
-
#address_line_1 ⇒ Object
Returns the value of attribute address_line_1.
-
#address_line_2 ⇒ Object
Returns the value of attribute address_line_2.
-
#campaign_id ⇒ Object
Returns the value of attribute campaign_id.
-
#city ⇒ Object
Returns the value of attribute city.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#form_id ⇒ Object
Returns the value of attribute form_id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#mobile_phone ⇒ Object
Returns the value of attribute mobile_phone.
-
#opt_in ⇒ Object
Returns the value of attribute opt_in.
-
#originating_action ⇒ Object
Returns the value of attribute originating_action.
-
#post_code ⇒ Object
Returns the value of attribute post_code.
-
#raw_response ⇒ Object
Returns the value of attribute raw_response.
-
#result ⇒ Object
Returns the value of attribute result.
-
#state ⇒ Object
Returns the value of attribute state.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Methods inherited from ActionModel
#initialize, #persisted?, reflect_on_association
Constructor Details
This class inherits a constructor from EngagingNetworks::ActionModel
Instance Attribute Details
#additional_fields ⇒ Object
Returns the value of attribute additional_fields.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def additional_fields @additional_fields end |
#address_line_1 ⇒ Object
Returns the value of attribute address_line_1.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def address_line_1 @address_line_1 end |
#address_line_2 ⇒ Object
Returns the value of attribute address_line_2.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def address_line_2 @address_line_2 end |
#campaign_id ⇒ Object
Returns the value of attribute campaign_id.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def campaign_id @campaign_id end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def city @city end |
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def client_id @client_id end |
#country ⇒ Object
Returns the value of attribute country.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def country @country end |
#country_name ⇒ Object
Returns the value of attribute country_name.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def country_name @country_name end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def first_name @first_name end |
#form_id ⇒ Object
Returns the value of attribute form_id.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def form_id @form_id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def last_name @last_name end |
#mobile_phone ⇒ Object
Returns the value of attribute mobile_phone.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def mobile_phone @mobile_phone end |
#opt_in ⇒ Object
Returns the value of attribute opt_in.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def opt_in @opt_in end |
#originating_action ⇒ Object
Returns the value of attribute originating_action.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def originating_action @originating_action end |
#post_code ⇒ Object
Returns the value of attribute post_code.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def post_code @post_code end |
#raw_response ⇒ Object
Returns the value of attribute raw_response.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def raw_response @raw_response end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def result @result end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def state @state end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/engaging_networks/action_create_action.rb', line 3 def title @title end |
Instance Method Details
#to_params ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/engaging_networks/action_create_action.rb', line 21 def to_params hsh = { 'Title' => title, 'Email address' => email, 'First name' => first_name, 'Last name' => last_name, 'City' => city, 'Country' => country, 'Country Name' => country_name, 'Address Line 1' => address_line_1, 'Address Line 2' => address_line_2, 'Post Code' => post_code, 'State' => state, 'Mobile Phone' => mobile_phone, 'Originating Action' => originating_action, 'Opt in' => opt_in_value } if additional_fields hsh.merge(additional_fields) else hsh end end |