Class: ReeRoutes::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def action
  @action
end

#overrideObject

Returns the value of attribute override.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def override
  @override
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def path
  @path
end

#request_methodObject

Returns the value of attribute request_method.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def request_method
  @request_method
end

#respond_toObject

Returns the value of attribute respond_to.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def respond_to
  @respond_to
end

#routeObject

Returns the value of attribute route.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def route
  @route
end

#sectionsObject

Returns the value of attribute sections.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def sections
  @sections
end

#serializerObject

Returns the value of attribute serializer.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def serializer
  @serializer
end

#summaryObject

Returns the value of attribute summary.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def summary
  @summary
end

#warden_scopeObject

Returns the value of attribute warden_scope.



4
5
6
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 4

def warden_scope
  @warden_scope
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/ree_lib/packages/ree_routes/package/ree_routes/route.rb', line 7

def valid?
  !action.nil? && !summary.nil? && !warden_scope.nil?
end