Class: ChinoRuby::Group

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#group_attributesObject

Returns the value of attribute group_attributes.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def group_attributes
  @group_attributes
end

#group_idObject

Returns the value of attribute group_id.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def group_id
  @group_id
end

#group_nameObject

Returns the value of attribute group_name.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def group_name
  @group_name
end

#insert_dateObject

Returns the value of attribute insert_date.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



720
721
722
# File 'lib/chino_ruby/classes.rb', line 720

def last_update
  @last_update
end

Instance Method Details

#attributesObject



732
733
734
# File 'lib/chino_ruby/classes.rb', line 732

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



722
723
724
725
726
727
728
729
730
# File 'lib/chino_ruby/classes.rb', line 722

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