Class: Railbus::RouteSet::Route

Inherits:
Struct
  • Object
show all
Defined in:
lib/railbus/route_set.rb

Overview

Example: get, /users/:id, [‘/users/’, ‘id’], [‘id’], user

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/railbus/route_set.rb', line 4

def name
  @name
end

#partsObject

Returns the value of attribute parts

Returns:

  • (Object)

    the current value of parts



4
5
6
# File 'lib/railbus/route_set.rb', line 4

def parts
  @parts
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/railbus/route_set.rb', line 4

def path
  @path
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



4
5
6
# File 'lib/railbus/route_set.rb', line 4

def required
  @required
end

#verbObject

Returns the value of attribute verb

Returns:

  • (Object)

    the current value of verb



4
5
6
# File 'lib/railbus/route_set.rb', line 4

def verb
  @verb
end