Class: Group

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

Overview

——————————GROUPS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#group_attributesObject

Returns the value of attribute group_attributes.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def group_attributes
  @group_attributes
end

#group_idObject

Returns the value of attribute group_id.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def group_id
  @group_id
end

#group_nameObject

Returns the value of attribute group_name.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def group_name
  @group_name
end

#insert_dateObject

Returns the value of attribute insert_date.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



776
777
778
# File 'lib/chino_ruby.rb', line 776

def last_update
  @last_update
end

Instance Method Details

#attributesObject



788
789
790
# File 'lib/chino_ruby.rb', line 788

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



778
779
780
781
782
783
784
785
786
# File 'lib/chino_ruby.rb', line 778

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