Class: Collection

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collection_idObject

Returns the value of attribute collection_id.



1089
1090
1091
# File 'lib/chino_ruby.rb', line 1089

def collection_id
  @collection_id
end

#insert_dateObject

Returns the value of attribute insert_date.



1089
1090
1091
# File 'lib/chino_ruby.rb', line 1089

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



1089
1090
1091
# File 'lib/chino_ruby.rb', line 1089

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



1089
1090
1091
# File 'lib/chino_ruby.rb', line 1089

def last_update
  @last_update
end

#nameObject

Returns the value of attribute name.



1089
1090
1091
# File 'lib/chino_ruby.rb', line 1089

def name
  @name
end

Instance Method Details

#attributesObject



1097
1098
1099
# File 'lib/chino_ruby.rb', line 1097

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



1091
1092
1093
1094
1095
# File 'lib/chino_ruby.rb', line 1091

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