Class: Webmachine::DescribeRoutes::Route
- Inherits:
-
Struct
- Object
- Struct
- Webmachine::DescribeRoutes::Route
- Defined in:
- lib/webmachine/describe_routes.rb
Instance Attribute Summary collapse
-
#allowed_methods ⇒ Object
Returns the value of attribute allowed_methods.
-
#path ⇒ Object
Returns the value of attribute path.
-
#policy_class ⇒ Object
Returns the value of attribute policy_class.
-
#resource_class ⇒ Object
Returns the value of attribute resource_class.
-
#resource_class_location ⇒ Object
Returns the value of attribute resource_class_location.
-
#resource_name ⇒ Object
Returns the value of attribute resource_name.
Instance Method Summary collapse
Instance Attribute Details
#allowed_methods ⇒ Object
Returns the value of attribute allowed_methods
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def allowed_methods @allowed_methods end |
#path ⇒ Object
Returns the value of attribute path
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def path @path end |
#policy_class ⇒ Object
Returns the value of attribute policy_class
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def policy_class @policy_class end |
#resource_class ⇒ Object
Returns the value of attribute resource_class
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def resource_class @resource_class end |
#resource_class_location ⇒ Object
Returns the value of attribute resource_class_location
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def resource_class_location @resource_class_location end |
#resource_name ⇒ Object
Returns the value of attribute resource_name
6 7 8 |
# File 'lib/webmachine/describe_routes.rb', line 6 def resource_name @resource_name end |
Instance Method Details
#[](key) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/webmachine/describe_routes.rb', line 15 def [](key) if respond_to?(key) send(key) else nil end end |
#path_include?(component) ⇒ Boolean
23 24 25 |
# File 'lib/webmachine/describe_routes.rb', line 23 def path_include?(component) path.include?(component) end |