Class: FriendlyRoutes::Params::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/friendly_routes/params/base.rb

Direct Known Subclasses

Boolean, Collection

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/friendly_routes/params/base.rb', line 6

def name
  @name
end

#typeObject

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

#constraintsObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/friendly_routes/params/base.rb', line 13

def constraints
  raise NotImplementedError
end