Class: ChinoRuby::Repository

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

Overview

——————————REPOSITORIES———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



420
421
422
# File 'lib/chino_ruby/classes.rb', line 420

def description
  @description
end

#insert_dateObject

Returns the value of attribute insert_date.



420
421
422
# File 'lib/chino_ruby/classes.rb', line 420

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



420
421
422
# File 'lib/chino_ruby/classes.rb', line 420

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



420
421
422
# File 'lib/chino_ruby/classes.rb', line 420

def last_update
  @last_update
end

#repository_idObject

Returns the value of attribute repository_id.



420
421
422
# File 'lib/chino_ruby/classes.rb', line 420

def repository_id
  @repository_id
end

Instance Method Details

#attributesObject



428
429
430
# File 'lib/chino_ruby/classes.rb', line 428

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



422
423
424
425
426
# File 'lib/chino_ruby/classes.rb', line 422

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