Flowdock
method

new

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActiveResource::Schema
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 schema of the actual
resource.
Show source
Register or log in to add new notes.