Module: Otis::HashContent

Included in:
Model
Defined in:
lib/otis/hash_content.rb

Overview

This module holds a collection of utilitie methods for Hash objects

Defined Under Namespace

Modules: ClassExtension

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/otis/hash_content.rb', line 5

def self.included(base)
  base.extend(ClassExtension)
end

Instance Method Details

#initialize(attrs = {}) ⇒ Object



9
10
11
12
# File 'lib/otis/hash_content.rb', line 9

def initialize(attrs = {})
  @response = root(attrs)
  super(@response)
end