Class: User

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

Overview

——————————USERS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupsObject

Returns the value of attribute groups.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def groups
  @groups
end

#insert_dateObject

Returns the value of attribute insert_date.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def last_update
  @last_update
end

#schema_idObject

Returns the value of attribute schema_id.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def schema_id
  @schema_id
end

#user_attributesObject

Returns the value of attribute user_attributes.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def user_attributes
  @user_attributes
end

#user_idObject

Returns the value of attribute user_id.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def user_id
  @user_id
end

#usernameObject

Returns the value of attribute username.



667
668
669
# File 'lib/chino_ruby.rb', line 667

def username
  @username
end

Instance Method Details

#attributesObject



679
680
681
# File 'lib/chino_ruby.rb', line 679

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



669
670
671
672
673
674
675
676
677
# File 'lib/chino_ruby.rb', line 669

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