method

new

new()
public

The internals of an Active Resource Schema are very simple - unlike an Active Record TableDefinition (on which it is based). It provides a set of convenience methods for people to define their schema using the syntax:

 schema do
   string :foo
   integer :bar
 end

 The schema stores the name and type of each attribute. That is then
 read out by the schema method to populate the actual
 Resource's schema