Class: FriendlyRoutes::Params::Base
- Inherits:
-
Object
- Object
- FriendlyRoutes::Params::Base
- Defined in:
- lib/friendly_routes/params/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #constraints ⇒ Object
-
#initialize(type, name) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(type, name) ⇒ Base
8 9 10 11 |
# File 'lib/friendly_routes/params/base.rb', line 8 def initialize(type, name) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/friendly_routes/params/base.rb', line 6 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/friendly_routes/params/base.rb', line 6 def type @type end |
Instance Method Details
#constraints ⇒ Object
13 14 15 |
# File 'lib/friendly_routes/params/base.rb', line 13 def constraints raise NotImplementedError end |