Class: Usher::Route::GenerateWith

Inherits:
Struct
  • Object
show all
Defined in:
lib/usher/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host



12
13
14
# File 'lib/usher/route.rb', line 12

def host
  @host
end

#portObject

Returns the value of attribute port



12
13
14
# File 'lib/usher/route.rb', line 12

def port
  @port
end

#schemeObject

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