Class: ActionKitApi::User

Inherits:
ApiDataModel show all
Includes:
Searchable
Defined in:
lib/action_kit_api/user.rb

Instance Attribute Summary collapse

Attributes inherited from ApiDataModel

#created_at, #updated_at

Instance Method Summary collapse

Methods included from Searchable

included

Methods inherited from ApiDataModel

#safe_hash, #save, #to_hash, #update, #valid?

Constructor Details

#initialize(*args) ⇒ User

Returns a new instance of User.



16
17
18
19
20
# File 'lib/action_kit_api/user.rb', line 16

def initialize(*args)
  @required_attrs = [:email, :first_name, :last_name, :zip]
  @read_only_attrs =[:subscription_status]
  super
end

Instance Attribute Details

#address1Object

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def address1
  @address1
end

#address2Object

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def address2
  @address2
end

#akidObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def akid
  @akid
end

#cityObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def city
  @city
end

#countryObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def country
  @country
end

#custom_fieldsObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def custom_fields
  @custom_fields
end

#emailObject

Required



8
9
10
# File 'lib/action_kit_api/user.rb', line 8

def email
  @email
end

#first_nameObject

Required



8
9
10
# File 'lib/action_kit_api/user.rb', line 8

def first_name
  @first_name
end

#idObject

Required



8
9
10
# File 'lib/action_kit_api/user.rb', line 8

def id
  @id
end

#langObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def lang
  @lang
end

#last_nameObject

Required



8
9
10
# File 'lib/action_kit_api/user.rb', line 8

def last_name
  @last_name
end

#middle_nameObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def middle_name
  @middle_name
end

#passwordObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def password
  @password
end

#plus4Object

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def plus4
  @plus4
end

#postalObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def postal
  @postal
end

#prefixObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def prefix
  @prefix
end

#rand_idObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def rand_id
  @rand_id
end

#regionObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def region
  @region
end

#sourceObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def source
  @source
end

#stateObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def state
  @state
end

#state_nameObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def state_name
  @state_name
end

#subscription_statusObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def subscription_status
  @subscription_status
end

#suffixObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def suffix
  @suffix
end

#tokenObject

Other/Active



11
12
13
# File 'lib/action_kit_api/user.rb', line 11

def token
  @token
end

#zipObject

Required



8
9
10
# File 'lib/action_kit_api/user.rb', line 8

def zip
  @zip
end