Module: Twitter::ClassUtilMixin
- Included in:
- Client, Config, RESTError, RESTInterfaceSpec, RESTMethodSpec, RESTParameterSpec
- Defined in:
- lib/vendor/twitter/lib/twitter/core.rb
Overview
Mixin module for classes that need to have a constructor similar to Rails’ models, where a Hash
is provided to set attributes appropriately.
To define a class that uses this mixin, use the following code:
class FilmActor
include ClassUtilMixin
end
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
15 16 17 |
# File 'lib/vendor/twitter/lib/twitter/core.rb', line 15 def self.included(base) #:nodoc: base.send(:include, InstanceMethods) end |