Class: Objectify::Config::Action
- Inherits:
-
Object
- Object
- Objectify::Config::Action
- Defined in:
- lib/objectify/config/action.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#policies ⇒ Object
readonly
Returns the value of attribute policies.
-
#resource_name ⇒ Object
readonly
Returns the value of attribute resource_name.
-
#responder ⇒ Object
readonly
Returns the value of attribute responder.
-
#route ⇒ Object
readonly
Returns the value of attribute route.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(routing_opts, resource_name, name, options, default_policies, route_factory = Route) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(routing_opts, resource_name, name, options, default_policies, route_factory = Route) ⇒ Action
Returns a new instance of Action.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/objectify/config/action.rb', line 10 def initialize(routing_opts, resource_name, name, , default_policies, route_factory = Route) @route = route_factory.new(routing_opts) @resource_name = resource_name @name = name @policies = default_policies.merge(, [name]) @namespace = [:namespace] || resource_name if [name] @service = [name][:service] @responder = [name][:responder] end end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def namespace @namespace end |
#policies ⇒ Object (readonly)
Returns the value of attribute policies.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def policies @policies end |
#resource_name ⇒ Object (readonly)
Returns the value of attribute resource_name.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def resource_name @resource_name end |
#responder ⇒ Object (readonly)
Returns the value of attribute responder.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def responder @responder end |
#route ⇒ Object (readonly)
Returns the value of attribute route.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def route @route end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
7 8 9 |
# File 'lib/objectify/config/action.rb', line 7 def service @service end |