Module: FlexibleApi
- Defined in:
- lib/flexible_api.rb,
lib/flexible_api/version.rb,
lib/flexible_api/request_level.rb,
lib/flexible_api/no_such_request_level_error.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Classes: NoSuchRequestLevelError, RequestLevel
Constant Summary
collapse
- VERSION =
'0.1.0'
- @@flexible_models =
[]
Class Method Summary
collapse
Class Method Details
.flexible_models ⇒ Object
14
15
16
|
# File 'lib/flexible_api.rb', line 14
def self.flexible_models
@@flexible_models
end
|
.included(base) ⇒ Object
8
9
10
11
12
|
# File 'lib/flexible_api.rb', line 8
def self.included(base)
base.send(:extend, ClassMethods)
base.send(:include, InstanceMethods)
@@flexible_models << base
end
|