class SingularResource::Finder
Attributes
name[RW]
options[RW]
strategy[RW]
Public Class Methods
new(name, strategy, options)
click to toggle source
# File lib/singular_resource/finder.rb, line 7 def initialize(name, strategy, options) self.name = name.to_s self.strategy = strategy self.options = options end
Public Instance Methods
call(controller)
click to toggle source
# File lib/singular_resource/finder.rb, line 13 def call(controller) strategy.new(controller, name, options).resource end