module RemoteResource::Concerns::Attributes::ClassMethods

Public Instance Methods

attr_accessor(*vars) click to toggle source
Calls superclass method
# File lib/remote_resource/concerns/attributes.rb, line 17
def attr_accessor(*vars)
  @attributes = (@attributes || []) + vars
  super
end
attributes() click to toggle source
# File lib/remote_resource/concerns/attributes.rb, line 22
def attributes
  Hash[(@attributes || []).map{|e| [e, nil]}]
end