Module: SchemaReader
- Defined in:
- lib/schema_reader.rb,
 lib/schema_reader/version.rb
Defined Under Namespace
Modules: ClassMethods Classes: Attribute, Table
Constant Summary collapse
- VERSION =
- "0.0.5"
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #update(options = {})  ⇒ Object 
    
    
      (also: #update_attributes)
    
  
  
  
  
  
  
  
  
  
    def initialize(options = {}) update(options) end. 
Class Method Details
.included(base) ⇒ Object
| 4 5 6 | # File 'lib/schema_reader.rb', line 4 def self.included(base) base.extend(ClassMethods) end | 
Instance Method Details
#update(options = {}) ⇒ Object Also known as: update_attributes
def initialize(options = {})
update()
end
| 12 13 14 15 16 | # File 'lib/schema_reader.rb', line 12 def update( = {}) .each do |attribute, value| send("#{attribute}=", value) end end |