Module: RestfulObjects::Object

Includes:
LinkGenerator
Defined in:
lib/restful_objects/object.rb

Class Method Summary collapse

Methods included from LinkGenerator

#generate_rel, #generate_repr_type, #link_to, #underscore_to_hyphen_string

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/restful_objects/object.rb', line 7

def self.included(base)
  RestfulObjects::DomainModel.current.types.add(base.name)

  base.class_eval do
    extend ObjectMacros
    include ObjectBase
    include ObjectProperties
    include ObjectCollections
    include ObjectActions
  end
end