Class: Institutions::Institution
- Inherits:
-
Object
- Object
- Institutions::Institution
- Defined in:
- lib/institutions/institution.rb
Overview
institution.rb: Institution
- Author
-
Scot Dalton
An Institution represents an administrative unit and its unique configuration data. Institutions are necessarily abstract and fairly flexible to accomodate the myriad needs of applications. An institution only requires a code and name to be instantiated.
Examples:
require 'institutions'
hash = { "attribute1" => "My first attribute.", :array_attribute => [1, 2] }
institution = Institutions::Institution.new("my_inst", "My Institution", hash)
p institution # -> #<Institutions::Institution @code=:my_inst, @name="My Institution", @attribute1="My first attribute.", @array_attribute=[1, 2], @default=false>
Instance Attribute Summary
Attributes included from Services
Attributes included from Parents
Attributes included from Mvc
Attributes included from IpAddresses
Attributes included from Auth
Attributes included from Core
Method Summary
Methods included from Util
#hash_keyize, #method_missing, #respond_to_missing?, #to_hash, #valid_instance_variable?
Methods included from Parents
Methods included from Merge
Methods included from IpAddresses
Methods included from Core
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Institutions::Util