Class: ChinoRuby::User

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby/classes.rb

Overview

------------------------------USERS-----------------------------------#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groups ⇒ Object

Returns the value of attribute groups.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def groups
  @groups
end

#insert_date ⇒ Object

Returns the value of attribute insert_date.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def insert_date
  @insert_date
end

#is_active ⇒ Object

Returns the value of attribute is_active.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def is_active
  @is_active
end

#last_update ⇒ Object

Returns the value of attribute last_update.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def last_update
  @last_update
end

#schema_id ⇒ Object

Returns the value of attribute schema_id.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def schema_id
  @schema_id
end

#user_attributes ⇒ Object

Returns the value of attribute user_attributes.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def user_attributes
  @user_attributes
end

#user_id ⇒ Object

Returns the value of attribute user_id.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def user_id
  @user_id
end

#username ⇒ Object

Returns the value of attribute username.



598
599
600
# File 'lib/chino_ruby/classes.rb', line 598

def username
  @username
end

Instance Method Details

#attributes ⇒ Object



610
611
612
# File 'lib/chino_ruby/classes.rb', line 610

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



600
601
602
603
604
605
606
607
608
# File 'lib/chino_ruby/classes.rb', line 600

def attributes=(hash)
  hash.each do |key, value|
    if key=="attributes"
      @user_attributes = value
    else
      send("#{key}=", value)
    end
  end
end