Method: Ark::Schema#save

Defined in:
lib/ark/schema.rb

#saveObject



30
31
32
33
34
35
36
# File 'lib/ark/schema.rb', line 30

def save
  if valid?
    @db.set("#{self.class.basepath}/#{@parsed_schema['id']}.json", @definition, "Adding schema - #{@parsed_schema['id']}")
  else
    false
  end
end