Class: ResourcePresenter

Inherits:
Presenter show all
Defined in:
app/presenters/resource_presenter.rb

Instance Method Summary collapse

Methods inherited from Presenter

#set_option, #set_options

Constructor Details

#initialize(subject, options = {}) ⇒ ResourcePresenter

Returns a new instance of ResourcePresenter.



2
3
4
5
6
# File 'app/presenters/resource_presenter.rb', line 2

def initialize(subject, options = {})
  @resource = options.delete(:resource)
  
  super(subject, options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Presenter