Class: Institutions::Institution

Inherits:
Object
  • Object
show all
Includes:
Auth, Core, IpAddresses, Merge, Mvc, Parents, Services, Util
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

#services

Attributes included from Parents

#parent_code

Attributes included from Mvc

#controllers, #models, #views

Attributes included from IpAddresses

#ip_addresses

Attributes included from Auth

#auth

Attributes included from Core

#code, #default, #name

Method Summary

Methods included from Util

#hash_keyize, #method_missing, #respond_to_missing?, #to_hash, #valid_instance_variable?

Methods included from Parents

#merge_parent

Methods included from Merge

#merge

Methods included from IpAddresses

#includes_ip?

Methods included from Core

#initialize

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Institutions::Util