Module: RestPack::Resource

Defined in:
lib/restpack-resource/version.rb,
lib/restpack-resource/resource.rb,
lib/restpack-resource/resource/single.rb,
lib/restpack-resource/resource/pageable.rb,
lib/restpack-resource/resource/sortable.rb,
lib/restpack-resource/resource/filterable.rb,
lib/restpack-resource/resource/includable.rb

Defined Under Namespace

Modules: ClassMethods, Filterable, Includable, Pageable, Single, Sortable Classes: InvalidArguments, InvalidFilter, InvalidInclude, InvalidSortBy

Constant Summary collapse

VERSION =
"0.1.9"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/restpack-resource/resource.rb', line 10

def self.included(base)
  base.extend(ClassMethods)
  base.extend(RestPack::Resource::Pageable)
  base.extend(RestPack::Resource::Filterable)
  base.extend(RestPack::Resource::Sortable)
  base.extend(RestPack::Resource::Includable)
  base.extend(RestPack::Resource::Single)
  super
end

Instance Method Details

#as_resource(options = {}) ⇒ Object



20
21
22
# File 'lib/restpack-resource/resource.rb', line 20

def as_resource(options = {})
  self
end