Module: CyberCoach::PostCreateable

Included in:
Entry
Defined in:
lib/cybercoach/post_createable.rb

Overview

Mixin for a resource that gets its URI assigned from the server. Include it in a class to use it.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Installs class and instance methods in the class it is included in.



10
11
12
13
# File 'lib/cybercoach/post_createable.rb', line 10

def self.included(base)
  base.extend ClassMethods
  base.send :include, InstanceMethods
end