Module: ActiveResourceExtensions::ResourceWithSchema

Defined in:
lib/active_resource_extensions/resource_with_schema.rb

Overview

Get schema from webservice, detect missing attributes and cast known attributes appropriately

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
# File 'lib/active_resource_extensions/resource_with_schema.rb', line 5

def self.included base
  base.extend ClassMethods
  base.send :include, InstanceMethods
end