module Guacamole::Edge::ClassMethods

Public Instance Methods

from(collection_name = nil) click to toggle source
# File lib/guacamole/edge.rb, line 48
def from(collection_name = nil)
  if collection_name.nil?
    @from
  else
    @from = collection_name
  end
end
from_collection() click to toggle source
# File lib/guacamole/edge.rb, line 68
def from_collection
  [from.to_s.camelcase, 'Collection'].join('').constantize
end
to(collection_name = nil) click to toggle source
# File lib/guacamole/edge.rb, line 56
def to(collection_name = nil)
  if collection_name.nil?
    @to
  else
    @to = collection_name
  end
end
to_collection() click to toggle source
# File lib/guacamole/edge.rb, line 64
def to_collection
  [to.to_s.camelcase, 'Collection'].join('').constantize
end