module SP::Duh::JSONAPI::Model::Concerns::Attributes::ClassMethods

Public Instance Methods

attr_accessible(name) click to toggle source
# File lib/sp/duh/jsonapi/model/concerns/attributes.rb, line 23
def attr_accessible(name)
  attributes << name if !attributes.include?(name)
  attr_accessor name
end
attributes() click to toggle source
# File lib/sp/duh/jsonapi/model/concerns/attributes.rb, line 14
def attributes
  if !@attributes && superclass.respond_to?(:attributes)
    @attributes = []
    @attributes += superclass.attributes
  end
  @attributes = [] if !@attributes
  @attributes
end