Class: Usher::Route::GenerateWith
- Inherits:
-
Struct
- Object
- Struct
- Usher::Route::GenerateWith
- Defined in:
- lib/usher/route.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
12 13 14 |
# File 'lib/usher/route.rb', line 12 def host @host end |
#port ⇒ Object
Returns the value of attribute port
12 13 14 |
# File 'lib/usher/route.rb', line 12 def port @port end |
#scheme ⇒ Object
Returns the value of attribute scheme
12 13 14 |
# File 'lib/usher/route.rb', line 12 def scheme @scheme end |
Instance Method Details
#empty? ⇒ Boolean
13 14 15 |
# File 'lib/usher/route.rb', line 13 def empty? scheme.nil? and port.nil? and host.nil? end |