Class: Signnow::User

Inherits:
Base
  • Object
show all
Includes:
Operations::Show
Defined in:
lib/signnow/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Operations::Show

included

Methods inherited from Base

#errors, #parse_timestamps, #set_attributes, #valid?

Methods included from Operations::Find

included

Methods included from Operations::Create

included

Methods included from Operations::All

included

Constructor Details

#initialize(attributes = {}) ⇒ User

Initializes the object using the given attributes

Parameters:

  • attributes (Hash) (defaults to: {})

    The attributes to use for initialization



12
13
14
15
# File 'lib/signnow/user.rb', line 12

def initialize(attributes = {})
  super(attributes)
  parse_booleans
end

Instance Attribute Details

#activeObject

Returns the value of attribute active.



5
6
7
# File 'lib/signnow/user.rb', line 5

def active
  @active
end

#attributesObject

Returns the value of attribute attributes.



5
6
7
# File 'lib/signnow/user.rb', line 5

def attributes
  @attributes
end

#createdObject

Returns the value of attribute created.



5
6
7
# File 'lib/signnow/user.rb', line 5

def created
  @created
end

#creditsObject

Returns the value of attribute credits.



5
6
7
# File 'lib/signnow/user.rb', line 5

def credits
  @credits
end

#emailObject

Returns the value of attribute email.



5
6
7
# File 'lib/signnow/user.rb', line 5

def email
  @email
end

#emailsObject

Returns the value of attribute emails.



5
6
7
# File 'lib/signnow/user.rb', line 5

def emails
  @emails
end

#first_nameObject

Returns the value of attribute first_name.



5
6
7
# File 'lib/signnow/user.rb', line 5

def first_name
  @first_name
end

#has_atticus_accessObject

Returns the value of attribute has_atticus_access.



5
6
7
# File 'lib/signnow/user.rb', line 5

def has_atticus_access
  @has_atticus_access
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/signnow/user.rb', line 5

def id
  @id
end

#identityObject

Returns the value of attribute identity.



5
6
7
# File 'lib/signnow/user.rb', line 5

def identity
  @identity
end

#is_logged_inObject

Returns the value of attribute is_logged_in.



5
6
7
# File 'lib/signnow/user.rb', line 5

def is_logged_in
  @is_logged_in
end

#last_nameObject

Returns the value of attribute last_name.



5
6
7
# File 'lib/signnow/user.rb', line 5

def last_name
  @last_name
end

#proObject

Returns the value of attribute pro.



5
6
7
# File 'lib/signnow/user.rb', line 5

def pro
  @pro
end

#subscriptionsObject

Returns the value of attribute subscriptions.



5
6
7
# File 'lib/signnow/user.rb', line 5

def subscriptions
  @subscriptions
end

#teamsObject

Returns the value of attribute teams.



5
6
7
# File 'lib/signnow/user.rb', line 5

def teams
  @teams
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/signnow/user.rb', line 5

def type
  @type
end