Class: ChinoRuby::Collection

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

Overview

——————————COLLECTIONS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collection_idObject

Returns the value of attribute collection_id.



1033
1034
1035
# File 'lib/chino_ruby/classes.rb', line 1033

def collection_id
  @collection_id
end

#insert_dateObject

Returns the value of attribute insert_date.



1033
1034
1035
# File 'lib/chino_ruby/classes.rb', line 1033

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



1033
1034
1035
# File 'lib/chino_ruby/classes.rb', line 1033

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



1033
1034
1035
# File 'lib/chino_ruby/classes.rb', line 1033

def last_update
  @last_update
end

#nameObject

Returns the value of attribute name.



1033
1034
1035
# File 'lib/chino_ruby/classes.rb', line 1033

def name
  @name
end

Instance Method Details

#attributesObject



1041
1042
1043
# File 'lib/chino_ruby/classes.rb', line 1041

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



1035
1036
1037
1038
1039
# File 'lib/chino_ruby/classes.rb', line 1035

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