Class: ProgressiveRender::Rails::PathResolver::TemplateContext

Inherits:
Object
  • Object
show all
Defined in:
lib/progressive_render/rails/path_resolver.rb

Overview

Holds the request parameters. Used to decouple the ProgressiveRequest from the renderer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



8
9
10
# File 'lib/progressive_render/rails/path_resolver.rb', line 8

def action
  @action
end

#controllerObject

Returns the value of attribute controller.



8
9
10
# File 'lib/progressive_render/rails/path_resolver.rb', line 8

def controller
  @controller
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/progressive_render/rails/path_resolver.rb', line 8

def type
  @type
end

Instance Method Details

#valid?Boolean



10
11
12
# File 'lib/progressive_render/rails/path_resolver.rb', line 10

def valid?
  valid_type? && valid_controller? && valid_action?
end