Class: ActionKitApi::User
- Inherits:
-
ApiDataModel
- Object
- ApiDataModel
- ActionKitApi::User
- Includes:
- Searchable
- Defined in:
- lib/action_kit_api/user.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Other/Active.
-
#address2 ⇒ Object
Other/Active.
-
#akid ⇒ Object
Other/Active.
-
#city ⇒ Object
Other/Active.
-
#country ⇒ Object
Other/Active.
-
#created_at ⇒ Object
Other/Active.
-
#custom_fields ⇒ Object
Other/Active.
-
#email ⇒ Object
Required.
-
#first_name ⇒ Object
Required.
-
#id ⇒ Object
Required.
-
#lang ⇒ Object
Other/Active.
-
#last_name ⇒ Object
Required.
-
#middle_name ⇒ Object
Other/Active.
-
#password ⇒ Object
Other/Active.
-
#plus4 ⇒ Object
Other/Active.
-
#postal ⇒ Object
Other/Active.
-
#prefix ⇒ Object
Other/Active.
-
#rand_id ⇒ Object
Other/Active.
-
#region ⇒ Object
Other/Active.
-
#source ⇒ Object
Other/Active.
-
#state ⇒ Object
Other/Active.
-
#state_name ⇒ Object
Other/Active.
-
#subscription_status ⇒ Object
Other/Active.
-
#suffix ⇒ Object
Other/Active.
-
#token ⇒ Object
Other/Active.
-
#updated_at ⇒ Object
Other/Active.
-
#zip ⇒ Object
Required.
Instance Method Summary collapse
-
#initialize(*args) ⇒ User
constructor
A new instance of User.
Methods included from Searchable
Methods inherited from ApiDataModel
#save, #to_hash, #update, #valid?
Constructor Details
#initialize(*args) ⇒ User
Returns a new instance of User.
16 17 18 19 |
# File 'lib/action_kit_api/user.rb', line 16 def initialize(*args) @required_attrs = [:email, :first_name, :last_name, :zip] super end |
Instance Attribute Details
#address1 ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def address1 @address1 end |
#address2 ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def address2 @address2 end |
#akid ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def akid @akid end |
#city ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def city @city end |
#country ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def country @country end |
#created_at ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def created_at @created_at end |
#custom_fields ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def custom_fields @custom_fields end |
#email ⇒ Object
Required
8 9 10 |
# File 'lib/action_kit_api/user.rb', line 8 def email @email end |
#first_name ⇒ Object
Required
8 9 10 |
# File 'lib/action_kit_api/user.rb', line 8 def first_name @first_name end |
#id ⇒ Object
Required
8 9 10 |
# File 'lib/action_kit_api/user.rb', line 8 def id @id end |
#lang ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def lang @lang end |
#last_name ⇒ Object
Required
8 9 10 |
# File 'lib/action_kit_api/user.rb', line 8 def last_name @last_name end |
#middle_name ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def middle_name @middle_name end |
#password ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def password @password end |
#plus4 ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def plus4 @plus4 end |
#postal ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def postal @postal end |
#prefix ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def prefix @prefix end |
#rand_id ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def rand_id @rand_id end |
#region ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def region @region end |
#source ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def source @source end |
#state ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def state @state end |
#state_name ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def state_name @state_name end |
#subscription_status ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def subscription_status @subscription_status end |
#suffix ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def suffix @suffix end |
#token ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def token @token end |
#updated_at ⇒ Object
Other/Active
11 12 13 |
# File 'lib/action_kit_api/user.rb', line 11 def updated_at @updated_at end |
#zip ⇒ Object
Required
8 9 10 |
# File 'lib/action_kit_api/user.rb', line 8 def zip @zip end |