Module: Ark::Record::ClassMethods

Includes:
Validations::Record
Defined in:
lib/ark/record.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](key) ⇒ Object



43
44
# File 'lib/ark/record.rb', line 43

def self.[](key)
end

Instance Method Details

#saveObject



39
40
41
# File 'lib/ark/record.rb', line 39

def save
  self.valid? ? @db.set("#{@basepath}/#{@name}.json", data, "Setting #{@record_type} - #{@name}") : false
end

#valid?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ark/record.rb', line 35

def valid?
  validate_record
end