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

Returns:

  • (Object)

    the current value of host



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

def host
  @host
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



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

def port
  @port
end

#schemeObject

Returns the value of attribute scheme

Returns:

  • (Object)

    the current value of scheme



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

def scheme
  @scheme
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?
  scheme.nil? and port.nil? and host.nil?
end