module Epok::Collectable
Public Class Methods
included(base)
click to toggle source
# File lib/epok/collectable.rb, line 5 def self.included(base) base.class_eval do extend Forwardable def_delegators :results, :entries, :first end end
Public Instance Methods
collection(object)
click to toggle source
# File lib/epok/collectable.rb, line 13 def collection(object) Collection.new object end